shell32: Ensure extraPmts is a valid pointer before checking it.

This commit is contained in:
Owen Rudge 2009-07-21 23:24:40 -03:00 committed by Alexandre Julliard
parent 0deb3d04ed
commit 5e289b91c0

View file

@ -783,7 +783,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd)
}
/* Now check if there had been a numerical value in the extra params */
if ((*extraPmts == '@') && (sp == -1)) {
if ((extraPmts) && (*extraPmts == '@') && (sp == -1)) {
sp = atoiW(extraPmts + 1);
}