mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
kernel32/tests: Correctly skip when GetTempPathW is not available.
This commit is contained in:
parent
1e74b21f18
commit
fda79ef217
1 changed files with 4 additions and 1 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in a new issue