user.exe16: Fix ADD_TO_T macro.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2017-07-10 01:06:15 +08:00 committed by Alexandre Julliard
parent f9c68dfd92
commit 51fea2208e
1 changed files with 5 additions and 3 deletions

View File

@ -3179,12 +3179,14 @@ DWORD WINAPI FormatMessage16(
talloced= 100;
#define ADD_TO_T(c) \
*t++=c;\
if (t-target == talloced) {\
do { \
*t++=c;\
if (t-target == talloced) {\
target = HeapReAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,target,talloced*2);\
t = target+talloced;\
talloced*=2;\
}
} \
} while(0)
if (from) {
f=from;