Commit 7be37c98 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

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: 's avatarMichael Stefaniuc <mstefani@redhat.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent c96684c3
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment