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:
parent
00651a2e63
commit
eaf640dbc4
2
src/cmd/dist/windows.c
vendored
2
src/cmd/dist/windows.c
vendored
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user