diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index b594a1ec5c4..f589a0d963e 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -235,8 +235,8 @@ static void test_LaunchINFSectionEx() /* try an invalid CAB filename */ lstrcpy(cmdline, CURR_DIR); - lstrcpy(cmdline, "\\"); - lstrcpy(cmdline, "test.inf,DefaultInstall,c:imacab.cab,4"); + lstrcat(cmdline, "\\"); + lstrcat(cmdline, "test.inf,DefaultInstall,c:imacab.cab,4"); hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); ok(hr == 0, "Expected 0, got %d\n", hr);