Corrected bug in TRACE function.

This commit is contained in:
Lionel Ulmer 1998-11-14 11:27:39 +00:00 committed by Alexandre Julliard
parent 7d70fe5acf
commit c57974d1c8
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ static LOCALHEAPINFO *LOCAL_GetHeap( HANDLE16 ds )
{
LOCALHEAPINFO *pInfo;
INSTANCEDATA *ptr = (INSTANCEDATA *)PTR_SEG_OFF_TO_LIN( ds, 0 );
TRACE(local, "Heap at %p, %04x\n", ptr, ptr->heap );
TRACE(local, "Heap at %p, %04x\n", ptr, (ptr != NULL ? ptr->heap : 0xFFFF));
if (!ptr || !ptr->heap) return NULL;
if (IsBadReadPtr16( (SEGPTR)MAKELONG(ptr->heap,ds), sizeof(LOCALHEAPINFO)))
return NULL;