cabinet/tests: Write-strings warnings fix (Try 2)

Andrew Talbot Andrew.Talbot at talbotville.com
Mon Aug 14 13:09:02 CDT 2006


Changelog:
    cabinet/tests: Write-strings warnings fix.

diff -urN a/dlls/cabinet/tests/extract.c b/dlls/cabinet/tests/extract.c
--- a/dlls/cabinet/tests/extract.c	2006-08-07 17:21:49.000000000 +0100
+++ b/dlls/cabinet/tests/extract.c	2006-08-14 18:23:10.000000000 +0100
@@ -298,6 +298,10 @@
     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 @@
 
     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-patches mailing list