Module: wine Branch: master Commit: 17f6609702c71a53d26c30e60e20578fb1e3531c URL: http://source.winehq.org/git/wine.git/?a=commit;h=17f6609702c71a53d26c30e60e...
Author: Vincent Povirk vincent@codeweavers.com Date: Mon Jul 22 14:46:12 2013 -0500
advpack/tests: Add test for LaunchINFSectionEx with quoted filename.
---
dlls/advpack/tests/install.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/advpack/tests/install.c b/dlls/advpack/tests/install.c index 4876d71..932f2da 100644 --- a/dlls/advpack/tests/install.c +++ b/dlls/advpack/tests/install.c @@ -237,6 +237,13 @@ static void test_LaunchINFSectionEx(void) hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); ok(hr == 0, "Expected 0, got %d\n", hr);
+ /* try quoting the parameters */ + lstrcpy(cmdline, """); + lstrcat(cmdline, CURR_DIR); + lstrcat(cmdline, "\test.inf","DefaultInstall","c:,imacab.cab","4""); + hr = pLaunchINFSectionEx(NULL, NULL, cmdline, 0); + todo_wine ok(hr == 0, "Expected 0, got %d\n", hr); + /* The 'No UI' flag seems to have no effect whatsoever on Windows. * So only do this test in interactive mode. */