[PATCH 1/3] Make line endings fix helper faster using BSTR stored length
Nikolay Sivov
nsivov at codeweavers.com
Tue Oct 26 16:10:53 CDT 2010
---
dlls/msxml3/node.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msxml3/node.c b/dlls/msxml3/node.c
index 3e8665f..0d12209 100644
--- a/dlls/msxml3/node.c
+++ b/dlls/msxml3/node.c
@@ -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;
}
--
1.5.6.5
--------------090508090401080601050408--
More information about the wine-patches
mailing list