this should fix it
A+
--
Eric Pouech
Name: wdbg_cast ChangeLog: fixed some bugs in cast operator License: X11 GenDate: 2003/01/05 13:37:14 UTC ModifiedFiles: programs/winedbg/expr.c AddedFiles: =================================================================== RCS file: /home/cvs/cvsroot/wine/wine/programs/winedbg/expr.c,v retrieving revision 1.2 diff -u -u -r1.2 expr.c --- programs/winedbg/expr.c 16 Sep 2002 19:26:48 -0000 1.2 +++ programs/winedbg/expr.c 5 Jan 2003 13:36:37 -0000 @@ -321,15 +321,13 @@ switch(exp->type) { case EXPR_TYPE_CAST: - rtn = DEBUG_EvalExpr(exp->un.cast.expr); - rtn.type = exp->un.cast.cast; - if (!rtn.type) + if (!exp->un.cast.cast) { DEBUG_Printf(DBG_CHN_MESG, "Can't cast to unknown type\n"); RaiseException(DEBUG_STATUS_BAD_TYPE, 0, 0, NULL); } - if (DEBUG_GetType(rtn.type) == DT_POINTER) - rtn.cookie = DV_TARGET; + rtn = DEBUG_EvalExpr(exp->un.cast.expr); + rtn.type = exp->un.cast.cast; break; case EXPR_TYPE_STRING: rtn.type = DEBUG_GetBasicType(DT_BASIC_STRING);