Commit 5e289b91 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

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

parent 0deb3d04
...@@ -783,7 +783,7 @@ static void Control_DoLaunch(CPanel* panel, HWND hWnd, LPCWSTR wszCmd) ...@@ -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 */ /* 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); sp = atoiW(extraPmts + 1);
} }
......
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