Commit 87a78ed8 authored by Sebastian Lackner's avatar Sebastian Lackner Committed by Alexandre Julliard

kernel32: Fix a valgrind warning in format_add_char(). (Valgrind).

parent 35e56fb0
......@@ -297,7 +297,7 @@ static void format_add_char(struct _format_message_data *fmd, WCHAR c)
LPWSTR notspace;
if (fmd->space) {
notspace = fmd->space;
while (*notspace == ' ' && notspace != fmd->t)
while (notspace != fmd->t && *notspace == ' ')
notspace++;
} else
notspace = fmd->space = fmd->t;
......
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