setupapi: Handle unquoted paths in InstallHinfSection as native.

This commit is contained in:
Misha Koshelev 2007-06-14 16:37:08 -05:00 committed by Alexandre Julliard
parent 095c9bf26a
commit 41fd380005
2 changed files with 2 additions and 2 deletions

View File

@ -1024,7 +1024,7 @@ void WINAPI InstallHinfSectionW( HWND hwnd, HINSTANCE handle, LPCWSTR cmdline, I
path=d=s;
while (*s)
{
if (*s==0 || ((*s=='\t' || *s==' ') && !in_quotes)) {
if (*s==0) {
/* end of this command line argument */
break;
} else if (*s=='\\') {

View File

@ -121,7 +121,7 @@ static void test_cmdline(void)
create_inf_file(infwithspaces, cmdline_inf);
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);
todo_wine ok_cmdline("DefaultInstall", 128, path, FALSE);