Paul Vriens : msxml3/tests: Use CreateFileA to please win98.
Alexandre Julliard
julliard at winehq.org
Wed Sep 3 07:43:44 CDT 2008
Module: wine
Branch: master
Commit: fe360d6aa2d068e4a2081edf7b4c843b2faed691
URL: http://source.winehq.org/git/wine.git/?a=commit;h=fe360d6aa2d068e4a2081edf7b4c843b2faed691
Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date: Wed Sep 3 09:39:16 2008 +0200
msxml3/tests: Use CreateFileA to please win98.
---
dlls/msxml3/tests/saxreader.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/msxml3/tests/saxreader.c b/dlls/msxml3/tests/saxreader.c
index 0ff0fdf..88cd89f 100644
--- a/dlls/msxml3/tests/saxreader.c
+++ b/dlls/msxml3/tests/saxreader.c
@@ -477,7 +477,7 @@ static void test_saxreader(void)
LARGE_INTEGER liPos;
ULONG bytesWritten;
HANDLE file;
-
+ static const CHAR testXmlA[] = "test.xml";
static const WCHAR testXmlW[] = {'t','e','s','t','.','x','m','l',0};
hr = CoCreateInstance(&CLSID_SAXXMLReader, NULL, CLSCTX_INPROC_SERVER,
@@ -564,7 +564,7 @@ static void test_saxreader(void)
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
test_expect_call(CH_ENDTEST);
- file = CreateFileW(testXmlW, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
+ file = CreateFileA(testXmlA, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
ok(file != INVALID_HANDLE_VALUE, "Could not create file: %u\n", GetLastError());
WriteFile(file, szTestXML, sizeof(szTestXML)-1, &bytesWritten, NULL);
CloseHandle(file);
@@ -574,7 +574,7 @@ static void test_saxreader(void)
ok(hr == S_OK, "Expected S_OK, got %08x\n", hr);
test_expect_call(CH_ENDTEST);
- DeleteFileW(testXmlW);
+ DeleteFileA(testXmlA);
ISAXXMLReader_Release(reader);
}
More information about the wine-cvs
mailing list