From 5e289b91c0c0b2c68988c45d8ab55825ef0c8d3c Mon Sep 17 00:00:00 2001 From: Owen Rudge Date: Tue, 21 Jul 2009 23:24:40 -0300 Subject: [PATCH] shell32: Ensure extraPmts is a valid pointer before checking it. --- dlls/shell32/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c index e2f8b895dfb..e7c7d953389 100644 --- a/dlls/shell32/control.c +++ b/dlls/shell32/control.c @@ -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); } -- 2.11.4.GIT