advpack: Fix a failing test in win98.

This commit is contained in:
James Hawkins 2008-08-04 17:52:47 -05:00 committed by Alexandre Julliard
parent 8c44e25693
commit 35e16a2b42
1 changed files with 5 additions and 1 deletions

View File

@ -97,6 +97,7 @@ static BOOL check_ini_file_attr(LPSTR filename)
static void test_AddDelBackupEntry(void)
{
BOOL ret;
HRESULT res;
CHAR path[MAX_PATH];
CHAR windir[MAX_PATH];
@ -165,7 +166,10 @@ static void test_AddDelBackupEntry(void)
res = pAddDelBackupEntry("one\0three\0", NULL, "basename", AADBE_DEL_ENTRY);
SetFileAttributesA(path, FILE_ATTRIBUTE_NORMAL);
ok(res == S_OK, "Expected S_OK, got %d\n", res);
ok(DeleteFileA(path), "Expected path to exist\n");
ret = DeleteFileA(path);
ok(ret == TRUE ||
broken(ret == FALSE), /* win98 */
"Expected path to exist\n");
}
/* the FCI callbacks */