aboutsummaryrefslogtreecommitdiffstats
path: root/api/rundll32.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-08-08 16:42:37 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-08-08 16:42:37 +0200
commit42030404e068c0af79fe3105c9c727d06b0f8b6c (patch)
treef0a91473c5159f8d31ecd19c6b3deb2c5ce815dd /api/rundll32.c
parentdriver: mark as network driver rather than system driver (diff)
downloadwintun-42030404e068c0af79fe3105c9c727d06b0f8b6c.tar.xz
wintun-42030404e068c0af79fe3105c9c727d06b0f8b6c.zip
api: rundll32: make empty string if no instance id
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--api/rundll32.c2
1 files changed, 1 insertions, 1 deletions
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);