Andrew Talbot : dbghelp: Fix type mismatch in comparison.

Alexandre Julliard julliard at winehq.org
Mon Mar 31 09:15:24 CDT 2008


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

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Mar 29 16:11:20 2008 +0000

dbghelp: Fix type mismatch in comparison.

---

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

diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index d597848..f9b5991 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -792,10 +792,11 @@ static inline int stabs_pts_read_array(struct ParseTypedefData* ptd,
 static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typename,
                                    struct symt** ret_dt)
 {
+    static struct symt null_dt = {SymTagNull};
     int			idx;
-    long                sz = -1;
-    struct symt*        new_dt = NULL; /* newly created data type */
-    struct symt*        ref_dt;		   /* referenced data type (pointer...) */
+    long		sz = -1;
+    struct symt*	new_dt = &null_dt; /* newly created data type */
+    struct symt*	ref_dt;		   /* referenced data type (pointer...) */
     long		filenr1, subnr1, tmp;
 
     /* things are a bit complicated because of the way the typedefs are stored inside
@@ -807,7 +808,7 @@ static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typ
     while (*ptd->ptr == '=')
     {
 	ptd->ptr++;
-	PTS_ABORTIF(ptd, new_dt != btNoType);
+	PTS_ABORTIF(ptd, new_dt->tag != SymTagNull);
 
 	/* first handle attribute if any */
 	switch (*ptd->ptr)      




More information about the wine-cvs mailing list