dbghelp: Fix type mismatch in comparison
Andrew Talbot
andrew.talbot at talbotville.com
Sat Mar 29 11:11:20 CDT 2008
Changelog:
dbghelp: Fix type mismatch in comparison.
diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c
index d597848..6775240 100644
--- a/dlls/dbghelp/stabs.c
+++ b/dlls/dbghelp/stabs.c
@@ -793,9 +793,10 @@ static int stabs_pts_read_type_def(struct ParseTypedefData* ptd, const char* typ
struct symt** ret_dt)
{
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 null_dt = {SymTagNull};
+ 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-patches
mailing list