Andrew Talbot : cabinet/tests: Write-strings warnings fix.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 15 06:42:10 CDT 2006
Module: wine
Branch: master
Commit: 64db35a993fd6a64eed36031f90cf9e865021984
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=64db35a993fd6a64eed36031f90cf9e865021984
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Mon Aug 14 19:09:02 2006 +0100
cabinet/tests: Write-strings warnings fix.
---
dlls/cabinet/tests/extract.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c
index e31318b..a9b71e6 100644
--- a/dlls/cabinet/tests/extract.c
+++ b/dlls/cabinet/tests/extract.c
@@ -298,6 +298,10 @@ static void create_cab_file(void)
CCAB cabParams;
HFCI hfci;
ERF erf;
+ static CHAR a_txt[] = "a.txt",
+ b_txt[] = "b.txt",
+ testdir_c_txt[] = "testdir\\c.txt",
+ testdir_d_txt[] = "testdir\\d.txt";
BOOL res;
set_cab_parameters(&cabParams);
@@ -308,10 +312,10 @@ static void create_cab_file(void)
ok(hfci != NULL, "Failed to create an FCI context\n");
- add_file(hfci, "a.txt");
- add_file(hfci, "b.txt");
- add_file(hfci, "testdir\\c.txt");
- add_file(hfci, "testdir\\d.txt");
+ add_file(hfci, a_txt);
+ add_file(hfci, b_txt);
+ add_file(hfci, testdir_c_txt);
+ add_file(hfci, testdir_d_txt);
res = FCIFlushCabinet(hfci, FALSE, get_next_cabinet, progress);
ok(res, "Failed to flush the cabinet\n");
More information about the wine-cvs
mailing list