Commit c6befb33 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

advpack/tests: Write-strings warnings fix.

parent 0fca0e00
...@@ -60,7 +60,7 @@ static void append_str(char **str, const char *data) ...@@ -60,7 +60,7 @@ static void append_str(char **str, const char *data)
*str += strlen(*str); *str += strlen(*str);
} }
static void create_inf_file(LPSTR filename) static void create_inf_file(LPCSTR filename)
{ {
char data[1024]; char data[1024];
char *ptr = data; char *ptr = data;
...@@ -201,6 +201,7 @@ static void test_LaunchINFSection() ...@@ -201,6 +201,7 @@ static void test_LaunchINFSection()
{ {
HRESULT hr; HRESULT hr;
char cmdline[MAX_PATH]; char cmdline[MAX_PATH];
static char file[] = "test.inf,DefaultInstall,4,0";
/* try an invalid cmdline */ /* try an invalid cmdline */
hr = pLaunchINFSection(NULL, NULL, NULL, 0); hr = pLaunchINFSection(NULL, NULL, NULL, 0);
...@@ -222,7 +223,7 @@ static void test_LaunchINFSection() ...@@ -222,7 +223,7 @@ static void test_LaunchINFSection()
create_inf_file("test.inf"); create_inf_file("test.inf");
/* try just the INF filename */ /* try just the INF filename */
hr = pLaunchINFSection(NULL, NULL, "test.inf,DefaultInstall,4,0", 0); hr = pLaunchINFSection(NULL, NULL, file, 0);
todo_wine todo_wine
{ {
ok(hr == 0, "Expected 0, got %ld\n", hr); ok(hr == 0, "Expected 0, got %ld\n", hr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment