shell32: Check if a numerical value has been passed inside quotes in Control_DoLaunch.

This commit is contained in:
Owen Rudge 2009-07-20 17:03:47 -03:00 committed by Alexandre Julliard
parent 08e7a1bfe7
commit bd926bde38

View file

@ -772,6 +772,11 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
extraPmts = extraPmtsBuf;
}
/* Now check if there had been a numerical value in the extra params */
if ((*extraPmts == '@') && (sp == -1)) {
sp = atoiW(extraPmts + 1);
}
TRACE("cmd %s, extra %s, sp %d\n", debugstr_w(buffer), debugstr_w(extraPmts), sp);
Control_LoadApplet(hWnd, buffer, panel);