crypt32/tests: Fix test on win9x (CreateFileW not implemented).
This commit is contained in:
parent
5437f4ce9c
commit
a6715f856e
|
@ -267,7 +267,9 @@ static void test_SIPRetrieveSubjectGUID(void)
|
||||||
DeleteFileA(tempfile);
|
DeleteFileA(tempfile);
|
||||||
|
|
||||||
/* Create a .cab file */
|
/* Create a .cab file */
|
||||||
file = CreateFileW(tempfileW, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL);
|
SetLastError(0xdeadbeef);
|
||||||
|
file = CreateFileA(tempfile, GENERIC_WRITE, 0, NULL, CREATE_NEW, 0, NULL);
|
||||||
|
ok(file != INVALID_HANDLE_VALUE, "failed with %u\n", GetLastError());
|
||||||
WriteFile(file, cabFileData, sizeof(cabFileData), &written, NULL);
|
WriteFile(file, cabFileData, sizeof(cabFileData), &written, NULL);
|
||||||
CloseHandle(file);
|
CloseHandle(file);
|
||||||
|
|
||||||
|
@ -278,8 +280,9 @@ static void test_SIPRetrieveSubjectGUID(void)
|
||||||
GetLastError(), GetLastError() );
|
GetLastError(), GetLastError() );
|
||||||
ok ( !memcmp(&subject, &cabGUID, sizeof(GUID)),
|
ok ( !memcmp(&subject, &cabGUID, sizeof(GUID)),
|
||||||
"Expected GUID %s for cabinet file, not %s\n", show_guid(&cabGUID, guid1), show_guid(&subject, guid2));
|
"Expected GUID %s for cabinet file, not %s\n", show_guid(&cabGUID, guid1), show_guid(&subject, guid2));
|
||||||
|
|
||||||
/* Clean up */
|
/* Clean up */
|
||||||
DeleteFileW(tempfileW);
|
DeleteFileA(tempfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void test_SIPLoad(void)
|
static void test_SIPLoad(void)
|
||||||
|
|
Loading…
Reference in New Issue