Commit 41fd3800 authored by Misha Koshelev's avatar Misha Koshelev Committed by Alexandre Julliard

setupapi: Handle unquoted paths in InstallHinfSection as native.

parent 095c9bf2
...@@ -1024,7 +1024,7 @@ void WINAPI InstallHinfSectionW( HWND hwnd, HINSTANCE handle, LPCWSTR cmdline, I ...@@ -1024,7 +1024,7 @@ void WINAPI InstallHinfSectionW( HWND hwnd, HINSTANCE handle, LPCWSTR cmdline, I
path=d=s; path=d=s;
while (*s) while (*s)
{ {
if (*s==0 || ((*s=='\t' || *s==' ') && !in_quotes)) { if (*s==0) {
/* end of this command line argument */ /* end of this command line argument */
break; break;
} else if (*s=='\\') { } else if (*s=='\\') {
......
...@@ -121,7 +121,7 @@ static void test_cmdline(void) ...@@ -121,7 +121,7 @@ static void test_cmdline(void)
create_inf_file(infwithspaces, cmdline_inf); create_inf_file(infwithspaces, cmdline_inf);
sprintf(path, "%s\\%s", CURR_DIR, infwithspaces); sprintf(path, "%s\\%s", CURR_DIR, infwithspaces);
todo_wine ok_cmdline("DefaultInstall", 128, path, TRUE); ok_cmdline("DefaultInstall", 128, path, TRUE);
sprintf(path, "\"%s\\%s\"", CURR_DIR, infwithspaces); sprintf(path, "\"%s\\%s\"", CURR_DIR, infwithspaces);
todo_wine ok_cmdline("DefaultInstall", 128, path, FALSE); todo_wine ok_cmdline("DefaultInstall", 128, path, FALSE);
......
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