Commit fc0968d4 authored by Andrew de Quincey's avatar Andrew de Quincey Committed by Alexandre Julliard

Fixed one more HeapReAlloc call.

parent 3a3ace6e
......@@ -296,6 +296,12 @@ int DEBUG_ReadLine(const char* pfx, char* buf, int size)
char* line = NULL;
size_t len = 0;
/* first alloc of our current buffer */
line = HeapAlloc(GetProcessHeap(), 0, len = 2);
assert(line);
line[0] = '\n';
line[1] = '\0';
DEBUG_FetchEntireLine(pfx, &line, &len, FALSE);
len = strlen(line);
/* remove trailing \n */
......
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