mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 10:41:12 +00:00
Fixed one more HeapReAlloc call.
This commit is contained in:
parent
3a3ace6e14
commit
fc0968d4d1
1 changed files with 6 additions and 0 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue