kernel32: Improve tracing in GlobalAlloc.
This commit is contained in:
parent
5a218e97af
commit
4a5ba4c732
|
@ -356,11 +356,10 @@ HGLOBAL WINAPI GlobalAlloc(
|
||||||
else
|
else
|
||||||
hpflags=0;
|
hpflags=0;
|
||||||
|
|
||||||
TRACE("() flags=%04x\n", flags );
|
|
||||||
|
|
||||||
if((flags & GMEM_MOVEABLE)==0) /* POINTER */
|
if((flags & GMEM_MOVEABLE)==0) /* POINTER */
|
||||||
{
|
{
|
||||||
palloc=HeapAlloc(GetProcessHeap(), hpflags, size);
|
palloc=HeapAlloc(GetProcessHeap(), hpflags, size);
|
||||||
|
TRACE( "(flags=%04x) returning %p\n", flags, palloc );
|
||||||
return (HGLOBAL) palloc;
|
return (HGLOBAL) palloc;
|
||||||
}
|
}
|
||||||
else /* HANDLE */
|
else /* HANDLE */
|
||||||
|
@ -399,7 +398,10 @@ HGLOBAL WINAPI GlobalAlloc(
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlUnlockHeap(GetProcessHeap());
|
RtlUnlockHeap(GetProcessHeap());
|
||||||
return pintern ? INTERN_TO_HANDLE(pintern) : 0;
|
if (!pintern) return 0;
|
||||||
|
TRACE( "(flags=%04x) returning handle %p pointer %p\n",
|
||||||
|
flags, INTERN_TO_HANDLE(pintern), pintern->Pointer );
|
||||||
|
return INTERN_TO_HANDLE(pintern);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue