Module: wine Branch: refs/heads/master Commit: 369ac64afe0f45385913bcb1f330a2980c8a4fb8 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=369ac64afe0f45385913bcb1...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Wed Aug 2 18:19:51 2006 +0100
lz32/tests: Write-strings warning fix.
---
dlls/lz32/tests/lzexpand_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/lz32/tests/lzexpand_main.c b/dlls/lz32/tests/lzexpand_main.c index 05704ce..fe1ae83 100644 --- a/dlls/lz32/tests/lzexpand_main.c +++ b/dlls/lz32/tests/lzexpand_main.c @@ -62,10 +62,11 @@ static void test_LZOpenFileA(void) INT file; char expected[MAX_PATH]; char filled_0xA5[OFS_MAXPATHNAME]; + static char badfilename_[] = "badfilename_";
SetLastError(0xfaceabee); /* Check for nonexistent file. */ - file = LZOpenFileA("badfilename_", &test, OF_READ); + file = LZOpenFileA(badfilename_, &test, OF_READ); ok(file == LZERROR_BADINHANDLE, "LZOpenFileA succeeded on nonexistent file\n"); ok(GetLastError() == ERROR_FILE_NOT_FOUND,