kernel32/tests: Correctly skip when GetTempPathW is not available.

This commit is contained in:
Andrew Nguyen 2009-05-18 04:24:42 -05:00 committed by Alexandre Julliard
parent 1e74b21f18
commit fda79ef217

View file

@ -878,8 +878,11 @@ static void test_GetTempPathW(char* tmp_dir)
lstrcpyW(buf, fooW);
len = GetTempPathW(MAX_PATH, buf);
if (len==0 && GetLastError()==ERROR_CALL_NOT_IMPLEMENTED)
if (len == 0 && GetLastError() == ERROR_CALL_NOT_IMPLEMENTED)
{
win_skip("GetTempPathW is not available\n");
return;
}
ok(lstrcmpiW(buf, tmp_dirW) == 0, "GetTempPathW returned an incorrect temporary path\n");
ok(len == lstrlenW(buf), "returned length should be equal to the length of string\n");