Michael Stefaniuc : comctl32: Avoid a potential NULL pointer dereference in a TRACE.

Alexandre Julliard julliard at winehq.org
Tue May 25 12:06:09 CDT 2010


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

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue May 25 10:06:33 2010 +0200

comctl32: Avoid a potential NULL pointer dereference in a TRACE.

---

 dlls/comctl32/propsheet.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/propsheet.c b/dlls/comctl32/propsheet.c
index 25a9218..45c7fe3 100644
--- a/dlls/comctl32/propsheet.c
+++ b/dlls/comctl32/propsheet.c
@@ -1962,13 +1962,13 @@ static BOOL PROPSHEET_CanSetCurSel(HWND hwndDlg)
   PSHNOTIFY psn;
   BOOL res = FALSE;
 
-  TRACE("active_page %d\n", psInfo->active_page);
   if (!psInfo)
   {
      res = FALSE;
      goto end;
   }
 
+  TRACE("active_page %d\n", psInfo->active_page);
   if (psInfo->active_page < 0)
   {
      res = TRUE;




More information about the wine-cvs mailing list