]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/dist: do not use HEAP_GENERATE_EXCEPTIONS flag
authorAlex Brainman <alex.brainman@gmail.com>
Thu, 9 Feb 2012 22:14:00 +0000 (09:14 +1100)
committerAlex Brainman <alex.brainman@gmail.com>
Thu, 9 Feb 2012 22:14:00 +0000 (09:14 +1100)
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5650048

src/cmd/dist/windows.c

index fade7bc02698dd100053939b701dea7b992774a9..74e7d8123049edd58760fa09e00d6366b5ceb566 100644 (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;