Commit 03adaea1 authored by Stefan Leichter's avatar Stefan Leichter Committed by Alexandre Julliard

Do not break quoted strings in Control_DoLaunch.

parent 513eb2a2
......@@ -317,6 +317,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd)
char ch;
unsigned sp = 0;
char* extraPmts = NULL;
int quoted = 0;
buffer = HeapAlloc(GetProcessHeap(), 0, strlen(cmd) + 1);
if (!buffer) return;
......@@ -325,7 +326,8 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd)
for (;;) {
ch = *end;
if (ch == ' ' || ch == ',' || ch == '\0') {
if (ch == '"') quoted = !quoted;
if (!quoted && (ch == ' ' || ch == ',' || ch == '\0')) {
*end = '\0';
if (beg) {
if (*beg == '@') {
......@@ -342,6 +344,9 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCSTR cmd)
}
end++;
}
TRACE("cmd %s, extra %s, sp %d\n", buffer, debugstr_a(extraPmts), sp);
Control_LoadApplet(hWnd, buffer, panel);
if (panel->first) {
......
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