Module: wine Branch: master Commit: b3cf216d9bbdf8dd2db7296839f40985be8f0b1b URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=b3cf216d9bbdf8dd2db72968...
Author: Andrew Talbot Andrew.Talbot@talbotville.com Date: Sun Aug 13 11:48:47 2006 +0100
advpack/tests: Write-strings warnings fix.
---
dlls/advpack/tests/files.c | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/dlls/advpack/tests/files.c b/dlls/advpack/tests/files.c index d56365a..1ef76c8 100644 --- a/dlls/advpack/tests/files.c +++ b/dlls/advpack/tests/files.c @@ -381,6 +381,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); @@ -391,10 +395,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");