forked from Mirrors/wine-wine
Fix GetFileSecurityA test on Win98.
parent
d2c7a6863b
commit
fdd2c7651a
|
@ -426,8 +426,10 @@ static void test_FileSecurity(void)
|
||||||
SetLastError(NO_ERROR);
|
SetLastError(NO_ERROR);
|
||||||
result = pGetFileSecurityA( directory,OWNER_SECURITY_INFORMATION,buffer,0x40,&outSize);
|
result = pGetFileSecurityA( directory,OWNER_SECURITY_INFORMATION,buffer,0x40,&outSize);
|
||||||
ok(!result, "GetFileSecurityA should fail for not existing directories/files\n");
|
ok(!result, "GetFileSecurityA should fail for not existing directories/files\n");
|
||||||
ok( GetLastError() == ERROR_FILE_NOT_FOUND,
|
ok( (GetLastError() == ERROR_FILE_NOT_FOUND ) ||
|
||||||
"last error ERROR_FILE_NOT_FOUND expected, got %ld\n", GetLastError());
|
(GetLastError() == ERROR_CALL_NOT_IMPLEMENTED) ,
|
||||||
|
"last error ERROR_FILE_NOT_FOUND / ERROR_CALL_NOT_IMPLEMENTED (98) "
|
||||||
|
"expected, got %ld\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
||||||
START_TEST(security)
|
START_TEST(security)
|
||||||
|
|
Loading…
Reference in New Issue