diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-08 16:42:37 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-08-08 16:42:37 +0200 |
commit | 42030404e068c0af79fe3105c9c727d06b0f8b6c (patch) | |
tree | f0a91473c5159f8d31ecd19c6b3deb2c5ce815dd | |
parent | driver: mark as network driver rather than system driver (diff) | |
download | wintun-42030404e068c0af79fe3105c9c727d06b0f8b6c.tar.xz wintun-42030404e068c0af79fe3105c9c727d06b0f8b6c.zip |
api: rundll32: make empty string if no instance id
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | api/rundll32.c | 2 |
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); |