Andrew Talbot : advpack/tests: Write-strings warnings fix.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 31 04:32:06 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: c6befb33580e6f464b6f00ca4dc3e263d01fd5f8
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=c6befb33580e6f464b6f00ca4dc3e263d01fd5f8

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Sat Jul 29 14:29:25 2006 +0100

advpack/tests: Write-strings warnings fix.

---

 dlls/advpack/tests/install.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c
index 10e42fb..919f809 100644
--- a/dlls/advpack/tests/install.c
+++ b/dlls/advpack/tests/install.c
@@ -60,7 +60,7 @@ static void append_str(char **str, const
     *str += strlen(*str);
 }
 
-static void create_inf_file(LPSTR filename)
+static void create_inf_file(LPCSTR filename)
 {
     char data[1024];
     char *ptr = data;
@@ -201,6 +201,7 @@ static void test_LaunchINFSection()
 {
     HRESULT hr;
     char cmdline[MAX_PATH];
+    static char file[] = "test.inf,DefaultInstall,4,0";
 
     /* try an invalid cmdline */
     hr = pLaunchINFSection(NULL, NULL, NULL, 0);
@@ -222,7 +223,7 @@ static void test_LaunchINFSection()
     create_inf_file("test.inf");
 
     /* try just the INF filename */
-    hr = pLaunchINFSection(NULL, NULL, "test.inf,DefaultInstall,4,0", 0);
+    hr = pLaunchINFSection(NULL, NULL, file, 0);
     todo_wine
     {
         ok(hr == 0, "Expected 0, got %ld\n", hr);




More information about the wine-cvs mailing list