Dmitry Timoshkov : user.exe16: Remove redundant HeapReAlloc.

Alexandre Julliard julliard at winehq.org
Thu Jun 22 16:50:51 CDT 2017


Module: wine
Branch: master
Commit: a628412f2b21a003b4b43832cc5fb899ff393aef
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a628412f2b21a003b4b43832cc5fb899ff393aef

Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date:   Thu Jun 22 15:56:27 2017 +0800

user.exe16: Remove redundant HeapReAlloc.

Signed-off-by: Dmitry Timoshkov <dmitry at baikal.ru>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 4a00d58..267714a 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 */




More information about the wine-cvs mailing list