diff --git a/dlls/kernel32/tests/virtual.c b/dlls/kernel32/tests/virtual.c index 767008f6f58..8773765fc94 100644 --- a/dlls/kernel32/tests/virtual.c +++ b/dlls/kernel32/tests/virtual.c @@ -64,6 +64,8 @@ static void test_VirtualAllocEx(void) if (!addr1 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) { /* Win9x */ trace("VirtualAllocEx is not implemented, skipping the test\n"); + TerminateProcess(hProcess, 0); + CloseHandle(hProcess); return; }