Fixed potential crash in string variable printing.

This commit is contained in:
Eric Pouech 1999-10-23 14:19:14 +00:00 committed by Alexandre Julliard
parent 805e58108e
commit 1427343172
1 changed files with 3 additions and 0 deletions

View File

@ -403,6 +403,9 @@ DEBUG_GetExprValue(DBG_ADDR * addr, char ** format)
if( type2->type == DT_BASIC && type2->un.basic.basic_size == 1 )
{
def_format = "\"%s\"";
address.off = rtn;
address.seg = 0;
if (!DBG_CHECK_READ_PTR( &address, 1 )) return 0;
break;
}
else