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

This commit is contained in:
Sebastian Lackner 2014-06-22 02:05:41 +02:00 committed by Alexandre Julliard
parent 35e56fb042
commit 87a78ed878
1 changed files with 1 additions and 1 deletions

View File

@ -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;