diff options
author | 2021-08-08 16:41:43 +0200 | |
---|---|---|
committer | 2021-08-08 22:57:27 +0200 | |
commit | 3b01a5096b43c30d6c75fb92d9e2686f53c377be (patch) | |
tree | 3829571816970c4b18faef491a4548663984ac9d | |
parent | driver: undocumented: use better SAL for ZwQuerySystemInformation (diff) | |
download | wireguard-nt-3b01a5096b43c30d6c75fb92d9e2686f53c377be.tar.xz wireguard-nt-3b01a5096b43c30d6c75fb92d9e2686f53c377be.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 c12e0c2..2c27730 100644 --- a/api/rundll32.c +++ b/api/rundll32.c @@ -87,7 +87,7 @@ VOID __stdcall CreateAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int WireGuardCreateAdapter(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) WireGuardFreeAdapter(Adapter); |