msxml3: Avoid a dangling else (LLVM/Clang).

This commit is contained in:
Austin English 2012-05-14 01:01:10 -05:00 committed by Alexandre Julliard
parent 3728a88231
commit 5de180beeb
1 changed files with 1 additions and 2 deletions

View File

@ -2277,8 +2277,7 @@ static HRESULT WINAPI domdoc_loadXML(
/* skip leading spaces if needed */
if (This->properties->version == MSXML_DEFAULT || This->properties->version == MSXML26)
while (*ptr)
if (isspaceW(*ptr)) ptr++; else break;
while (*ptr && isspaceW(*ptr)) ptr++;
xmldoc = doparse(This, (char*)ptr, strlenW(ptr)*sizeof(WCHAR), XML_CHAR_ENCODING_UTF16LE);
if ( !xmldoc )