Owen Rudge : shell32: Ensure extraPmts is a valid pointer before checking it.
Module: wine Branch: master Commit: 5e289b91c0c0b2c68988c45d8ab55825ef0c8d3c URL: http://source.winehq.org/git/wine.git/?a=commit;h=5e289b91c0c0b2c68988c45d8a... Author: Owen Rudge <owen(a)owenrudge.net> Date: Tue Jul 21 23:24:40 2009 -0300 shell32: Ensure extraPmts is a valid pointer before checking it. --- dlls/shell32/control.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/shell32/control.c b/dlls/shell32/control.c index e2f8b89..e7c7d95 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); }
participants (1)
-
Alexandre Julliard