From 42030404e068c0af79fe3105c9c727d06b0f8b6c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 8 Aug 2021 16:42:37 +0200 Subject: [PATCH] api: rundll32: make empty string if no instance id Signed-off-by: Jason A. Donenfeld --- api/rundll32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/rundll32.c b/api/rundll32.c index 77d7651..37d4387 100644 --- a/api/rundll32.c +++ b/api/rundll32.c @@ -86,7 +86,7 @@ VOID __stdcall CreateAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int WINTUN_ADAPTER *Adapter = WintunCreateAdapter(Argv[2], Argv[3], Argc > 4 ? &RequestedGUID : NULL, &RebootRequired); DWORD LastError = Adapter ? ERROR_SUCCESS : GetLastError(); WriteFormatted( - STD_OUTPUT_HANDLE, L"%1!X! %2!s! %3!X!", LastError, Adapter ? Adapter->DevInstanceID : L"", RebootRequired); + STD_OUTPUT_HANDLE, L"%1!X! %2!s! %3!X!", LastError, Adapter ? Adapter->DevInstanceID : L"\"\"", RebootRequired); if (Adapter) WintunFreeAdapter(Adapter);