[1/5] shlwapi: Fix incorrect usage of CompareString in StrRStrIA.

Sebastian Lackner sebastian at fds-team.de
Wed Nov 19 02:22:48 CST 2014


The implementation of CharPrevA is so slow (always searches the whole string from the beginning), that it is more useful to use the comctl32 implementation here than fixing the existing one -
with a slight modification: the existing tests show that when lpszEnd is passed, the function reads past the end of the string, even on Windows.

---
 dlls/shlwapi/string.c | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-shlwapi-Fix-incorrect-usage-of-CompareString-in-StrR.patch
Type: text/x-patch
Size: 1978 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20141119/af21ac6c/attachment.bin>


More information about the wine-patches mailing list