msxml3: Make line endings fix helper faster using BSTR stored length.

This commit is contained in:
Nikolay Sivov 2010-10-27 01:10:53 +04:00 committed by Alexandre Julliard
parent 8a6210d28f
commit ecfc3f153c
1 changed files with 2 additions and 2 deletions

View File

@ -903,7 +903,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
int nLen;
int i;
nLen = lstrlenW(sInput);
nLen = SysStringLen(sInput);
/* Count line endings */
for(i=0; i < nLen; i++)
{
@ -935,7 +935,7 @@ static BSTR EnsureCorrectEOL(BSTR sInput)
sNew = sInput;
}
TRACE("len %d\n", lstrlenW(sNew));
TRACE("len %d\n", SysStringLen(sNew));
return sNew;
}