[1/2] advpack: Add test for LaunchINFSectionEx with quoted filename. (resend)

Vincent Povirk madewokherd at gmail.com
Mon Jul 22 16:55:40 CDT 2013


I don't recall the status of this patch, and it's fallen off the list.
-------------- next part --------------
From ae38740409b9db43cb318b48bcb7400e27561f34 Mon Sep 17 00:00:00 2001
From: Vincent Povirk <vincent at codeweavers.com>
Date: Mon, 22 Jul 2013 14:46:12 -0500
Subject: [PATCH 1/2] advpack: Add test for LaunchINFSectionEx with quoted
 filename.

---
 dlls/advpack/tests/install.c | 7 +++++++
 1 file changed, 7 insertions(+)

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.
      */
-- 
1.8.1.2


More information about the wine-patches mailing list