user.exe16: Fix a misplaced closing bracket (PVS-Studio).
Previous code was setting ret to 1 for negative return values of vsnprintf; that would fail on glibc 2.0.6 and older. Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c96684c3b2
commit
7be37c9874
|
@ -3244,7 +3244,7 @@ DWORD WINAPI FormatMessage16(
|
|||
argliststart=args+insertnr-1;
|
||||
|
||||
/* CMF - This makes a BIG assumption about va_list */
|
||||
while ((ret = vsnprintf(b, sz, fmtstr, (va_list) argliststart) < 0) || (ret >= sz)) {
|
||||
while ((ret = vsnprintf(b, sz, fmtstr, (va_list) argliststart)) < 0 || ret >= sz) {
|
||||
sz = (ret == -1 ? sz + 100 : ret + 1);
|
||||
b = HeapReAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, b, sz);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue