1
0
mirror of https://github.com/golang/go synced 2024-11-19 14:54:43 -07:00

cmd/dist: do not use HEAP_GENERATE_EXCEPTIONS flag

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5650048
This commit is contained in:
Alex Brainman 2012-02-10 09:14:00 +11:00
parent 00651a2e63
commit eaf640dbc4

View File

@ -735,7 +735,7 @@ xrealloc(void *p, int n)
return xmalloc(n);
if(HEAP == INVALID_HANDLE_VALUE)
HEAP = GetProcessHeap();
p = HeapReAlloc(HEAP, HEAP_GENERATE_EXCEPTIONS, p, n);
p = HeapReAlloc(HEAP, 0, p, n);
if(p == nil)
fatal("out of memory reallocating %d", n);
return p;