Module: wine Branch: master Commit: 87a78ed8788e002afb4abd652fc40f1599a77c34 URL: http://source.winehq.org/git/wine.git/?a=commit;h=87a78ed8788e002afb4abd652f...
Author: Sebastian Lackner sebastian@fds-team.de Date: Sun Jun 22 02:05:41 2014 +0200
kernel32: Fix a valgrind warning in format_add_char(). (Valgrind).
---
dlls/kernel32/format_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernel32/format_msg.c b/dlls/kernel32/format_msg.c index 37dcdb3..aee7d7a 100644 --- a/dlls/kernel32/format_msg.c +++ b/dlls/kernel32/format_msg.c @@ -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;