Moved SystemHeap allocations to the process heap.
diff --git a/misc/toolhelp.c b/misc/toolhelp.c
index 136d344..6a664f0 100644
--- a/misc/toolhelp.c
+++ b/misc/toolhelp.c
@@ -50,10 +50,10 @@
break;
if (i==nrofnotifys) {
if (notifys==NULL)
- notifys=(struct notify*)HeapAlloc( SystemHeap, 0,
+ notifys=(struct notify*)HeapAlloc( GetProcessHeap(), 0,
sizeof(struct notify) );
else
- notifys=(struct notify*)HeapReAlloc( SystemHeap, 0, notifys,
+ notifys=(struct notify*)HeapReAlloc( GetProcessHeap(), 0, notifys,
sizeof(struct notify)*(nrofnotifys+1));
if (!notifys) return FALSE;
nrofnotifys++;
@@ -76,7 +76,7 @@
if (i==-1)
return FALSE;
memcpy(notifys+i,notifys+(i+1),sizeof(struct notify)*(nrofnotifys-i-1));
- notifys=(struct notify*)HeapReAlloc( SystemHeap, 0, notifys,
+ notifys=(struct notify*)HeapReAlloc( GetProcessHeap(), 0, notifys,
(nrofnotifys-1)*sizeof(struct notify));
nrofnotifys--;
return TRUE;