Commit 49a98285 authored by Alexandre Julliard's avatar Alexandre Julliard

Fixed one more HeapReAlloc call.

parent b7976c00
......@@ -316,6 +316,10 @@ char* DEBUG_MakeSymbol(const char* symbol)
assert(0 <= next_symbol && next_symbol < alloc_symbol + 1);
if (next_symbol >= alloc_symbol)
{
if (!local_symbols)
local_symbols = HeapAlloc(GetProcessHeap(), 0,
(alloc_symbol += 32) * sizeof(local_symbols[0]));
else
local_symbols = HeapReAlloc(GetProcessHeap(), 0, local_symbols,
(alloc_symbol += 32) * sizeof(local_symbols[0]));
assert(local_symbols);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment