diff options
Diffstat (limited to 'api/rundll32.c')
-rw-r--r-- | api/rundll32.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/api/rundll32.c b/api/rundll32.c index ac678a5..164b305 100644 --- a/api/rundll32.c +++ b/api/rundll32.c @@ -121,10 +121,11 @@ VOID __stdcall DeleteAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int goto cleanup; WINTUN_ADAPTER Adapter = { 0 }; - if (FAILED(CLSIDFromString(Argv[2], &Adapter.CfgInstanceID))) + BOOL ForceCloseSessions = wcstoul(Argv[2], NULL, 10); + if (FAILED(CLSIDFromString(Argv[3], &Adapter.CfgInstanceID))) goto cleanup; BOOL RebootRequired = FALSE; - WriteFormatted(STD_OUTPUT_HANDLE, L"%1!X! %2!X!", WintunDeleteAdapter(&Adapter, &RebootRequired), RebootRequired); + WriteFormatted(STD_OUTPUT_HANDLE, L"%1!X! %2!X!", WintunDeleteAdapter(&Adapter, ForceCloseSessions, &RebootRequired), RebootRequired); cleanup: Done(); |