Jacek Caban : dbghelp: Check for NULL adt before using it in stabs_pts_read_aggregate.

Alexandre Julliard julliard at winehq.org
Mon Aug 17 11:23:49 CDT 2009


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

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Fri Aug 14 19:28:39 2009 +0200

dbghelp: Check for NULL adt before using it in stabs_pts_read_aggregate.

---

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

diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index 0efc58b..ecc6863 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -652,7 +652,7 @@ static inline int stabs_pts_read_aggregate(struct ParseTypedefData* ptd,
 
             PTS_ABORTIF(ptd, stabs_pts_read_type_def(ptd, NULL, &adt) == -1);
 
-            if (doadd)
+            if (doadd && adt)
             {
                 char    tmp[256];
                 DWORD64 size;




More information about the wine-cvs mailing list