[2/2] user.exe16: Remove redundant HeapReAlloc.
Dmitry Timoshkov
dmitry at baikal.ru
Thu Jun 22 02:56:27 CDT 2017
Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
---
dlls/user.exe16/user.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/dlls/user.exe16/user.c b/dlls/user.exe16/user.c
index 4a00d58752..267714a6d8 100644
--- a/dlls/user.exe16/user.c
+++ b/dlls/user.exe16/user.c
@@ -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 */
--
2.13.1
More information about the wine-patches
mailing list