api: clear up argument evaluation order
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
parent
17bd620a36
commit
378e8eec27
@ -138,11 +138,8 @@ VOID __stdcall DeleteAdapter(HWND hwnd, HINSTANCE hinst, LPSTR lpszCmdLine, int
|
|||||||
if (FAILED(CLSIDFromString(Argv[3], &Adapter.CfgInstanceID)))
|
if (FAILED(CLSIDFromString(Argv[3], &Adapter.CfgInstanceID)))
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
BOOL RebootRequired;
|
BOOL RebootRequired;
|
||||||
WriteFormatted(
|
WINTUN_STATUS Ret = WintunDeleteAdapter(&Adapter, ForceCloseSessions, &RebootRequired);
|
||||||
STD_OUTPUT_HANDLE,
|
WriteFormatted(STD_OUTPUT_HANDLE, L"%1!X! %2!X!", Ret, RebootRequired);
|
||||||
L"%1!X! %2!X!",
|
|
||||||
WintunDeleteAdapter(&Adapter, ForceCloseSessions, &RebootRequired),
|
|
||||||
RebootRequired);
|
|
||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
Done();
|
Done();
|
||||||
|
Loading…
Reference in New Issue
Block a user