user.exe16: Remove redundant HeapReAlloc.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Dmitry Timoshkov 2017-06-22 15:56:27 +08:00 committed by Alexandre Julliard
parent 8c3ed82927
commit a628412f2b
1 changed files with 0 additions and 3 deletions

View File

@ -3288,9 +3288,6 @@ DWORD WINAPI FormatMessage16(
*t='\0';
}
talloced = strlen(target)+1;
if (nSize && talloced<nSize) {
target = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,nSize);
}
TRACE("-- %s\n",debugstr_a(target));
if (dwFlags & FORMAT_MESSAGE_ALLOCATE_BUFFER) {
/* nSize is the MINIMUM size */