X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=rostests%2Fapitests%2Flocalspl%2Ftests.c;h=040cde83b4b503111dead26b96f580beeb242f14;hp=9dd932457226f29ad40949243368ed8fffb89dbc;hb=e53a72c351b97c253b4c23b2650e6610e62a9aa1;hpb=8f3b3eb6e236d6a9ba036cbafe6c161c7174997c diff --git a/rostests/apitests/localspl/tests.c b/rostests/apitests/localspl/tests.c index 9dd93245722..040cde83b4b 100644 --- a/rostests/apitests/localspl/tests.c +++ b/rostests/apitests/localspl/tests.c @@ -2,7 +2,7 @@ * PROJECT: ReactOS Local Spooler API Tests * LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation * PURPOSE: Test list - * COPYRIGHT: Copyright 2015 Colin Finck + * COPYRIGHT: Copyright 2015-2016 Colin Finck */ /* @@ -45,7 +45,7 @@ _RunRemoteTest(const char* szTestName) DWORD cbRead; DWORD cbWritten; HANDLE hCommandPipe = INVALID_HANDLE_VALUE; - HANDLE hFind = NULL; + HANDLE hFind = INVALID_HANDLE_VALUE; HANDLE hOutputPipe = INVALID_HANDLE_VALUE; PWSTR p; SC_HANDLE hSC = NULL; @@ -77,7 +77,7 @@ _RunRemoteTest(const char* szTestName) // Check if the corresponding DLL file exists. hFind = FindFirstFileW(wszFilePath, &fd); - if (!hFind) + if (hFind == INVALID_HANDLE_VALUE) { skip("My DLL file \"%S\" does not exist!\n", wszFilePath); goto Cleanup; @@ -187,13 +187,13 @@ _RunRemoteTest(const char* szTestName) bSuccessful = TRUE; Cleanup: - if (hCommandPipe) + if (hCommandPipe != INVALID_HANDLE_VALUE) CloseHandle(hCommandPipe); - if (hOutputPipe) + if (hOutputPipe != INVALID_HANDLE_VALUE) CloseHandle(hOutputPipe); - if (hFind) + if (hFind != INVALID_HANDLE_VALUE) FindClose(hFind); if (hService)