Commit 0d2fa77c authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Remove quotes from filename before calling LoadLibrary in DoLaunch.

parent d7e28478
...@@ -309,12 +309,14 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd) ...@@ -309,12 +309,14 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd)
* foo.cpl,,str * foo.cpl,,str
* foo.cpl @sp * foo.cpl @sp
* foo.cpl str * foo.cpl str
* "a path\foo.cpl"
*/ */
{ {
char* buffer; char* buffer;
char* beg = NULL; char* beg = NULL;
char* end; char* end;
char ch; char ch;
char* ptr;
unsigned sp = 0; unsigned sp = 0;
char* extraPmts = NULL; char* extraPmts = NULL;
int quoted = 0; int quoted = 0;
...@@ -344,6 +346,8 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd) ...@@ -344,6 +346,8 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd)
} }
end++; end++;
} }
while (ptr = strchr(buffer, (int) '"'))
memmove(ptr, ptr+1, strlen(ptr));
TRACE("cmd %s, extra %s, sp %d\n", buffer, debugstr_a(extraPmts), sp); TRACE("cmd %s, extra %s, sp %d\n", buffer, debugstr_a(extraPmts), sp);
......
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