Saulius Krasuckas : lz32: LZOpenFileA sets last error sometimes.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jun 19 16:18:17 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 6d024b28b9de29563cc3bedf2d65d8b88ad4c0a9
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=6d024b28b9de29563cc3bedf2d65d8b88ad4c0a9
Author: Saulius Krasuckas <saulius.krasuckas at ieee.org>
Date: Mon Jun 19 23:21:28 2006 +0300
lz32: LZOpenFileA sets last error sometimes.
---
dlls/lz32/tests/lzexpand_main.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/dlls/lz32/tests/lzexpand_main.c b/dlls/lz32/tests/lzexpand_main.c
index 4e5fd73..b0aaaa1 100644
--- a/dlls/lz32/tests/lzexpand_main.c
+++ b/dlls/lz32/tests/lzexpand_main.c
@@ -60,10 +60,13 @@ static void test_LZOpenFileA(void)
char expected[MAX_PATH];
char filled_0xA5[OFS_MAXPATHNAME];
+ SetLastError(0xfaceabee);
/* Check for nonexistent file. */
file = LZOpenFileA("badfilename_", &test, OF_READ);
ok(file == LZERROR_BADINHANDLE,
"LZOpenFileA succeeded on nonexistent file\n");
+ ok(GetLastError() == ERROR_FILE_NOT_FOUND,
+ "GetLastError() returns %ld\n", GetLastError());
LZClose(file);
/* Create an empty file. */
@@ -102,7 +105,6 @@ static void test_LZOpenFileA(void)
expected[retval-1] = '_';
memset(&filled_0xA5, 0xA5, OFS_MAXPATHNAME);
memset(&test, 0xA5, sizeof(test));
- SetLastError(0xfaceabee);
/* Try to open compressed file. */
file = LZOpenFileA(filename, &test, OF_EXIST);
More information about the wine-cvs
mailing list