msxml3:fix a dangling else (LLVM/Clang) (try 2)
Austin English
austinenglish at gmail.com
Mon May 14 13:12:33 CDT 2012
With formatting changes at Michael's request.
--
-Austin
-------------- next part --------------
diff --git a/dlls/msxml3/domdoc.c b/dlls/msxml3/domdoc.c
index 72f9a31..1f0045e 100644
--- a/dlls/msxml3/domdoc.c
+++ b/dlls/msxml3/domdoc.c
@@ -2254,9 +2254,13 @@ 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;
-
+ if (isspaceW(*ptr))
+ ptr++;
+ else
+ break;
+ }
xmldoc = doparse(This, (char*)ptr, strlenW(ptr)*sizeof(WCHAR), XML_CHAR_ENCODING_UTF16LE);
if ( !xmldoc )
{
More information about the wine-patches
mailing list