Detlef Riekenberg : crypt32/tests: Fix test on win9x ( CreateFileW not implemented).
Alexandre Julliard
julliard at winehq.org
Mon Jul 28 08:07:20 CDT 2008
Module: wine
Branch: master
Commit: a6715f856e431ab6df9a7eea6b539ae19193fb09
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a6715f856e431ab6df9a7eea6b539ae19193fb09
Author: Detlef Riekenberg <wine.dev at web.de>
Date: Sun Jul 27 22:04:32 2008 +0200
crypt32/tests: Fix test on win9x (CreateFileW not implemented).
---
dlls/crypt32/tests/sip.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/crypt32/tests/sip.c b/dlls/crypt32/tests/sip.c
index b01229c..d5d2a50 100644
--- a/dlls/crypt32/tests/sip.c
+++ b/dlls/crypt32/tests/sip.c
@@ -267,7 +267,9 @@ static void test_SIPRetrieveSubjectGUID(void)
DeleteFileA(tempfile);
/* 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);
CloseHandle(file);
@@ -278,8 +280,9 @@ static void test_SIPRetrieveSubjectGUID(void)
GetLastError(), GetLastError() );
ok ( !memcmp(&subject, &cabGUID, sizeof(GUID)),
"Expected GUID %s for cabinet file, not %s\n", show_guid(&cabGUID, guid1), show_guid(&subject, guid2));
+
/* Clean up */
- DeleteFileW(tempfileW);
+ DeleteFileA(tempfile);
}
static void test_SIPLoad(void)
More information about the wine-cvs
mailing list