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

Alexandre Julliard julliard at winehq.org
Wed Jul 22 09:33:48 CDT 2009


Module: wine
Branch: master
Commit: 5e289b91c0c0b2c68988c45d8ab55825ef0c8d3c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5e289b91c0c0b2c68988c45d8ab55825ef0c8d3c

Author: Owen Rudge <owen at 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);
     }
 




More information about the wine-cvs mailing list