From c6befb33580e6f464b6f00ca4dc3e263d01fd5f8 Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 29 Jul 2006 14:29:25 +0100 Subject: [PATCH] advpack/tests: Write-strings warnings fix. --- dlls/advpack/tests/install.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index 10e42fb0b47..919f8090c00 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -60,7 +60,7 @@ static void append_str(char **str, const char *data) *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);