SHLWAPI: implement PathIsValidChar{A,W} (#2)
Hans Leidekker
hans at it.vu.nl
Tue Feb 1 06:53:26 CST 2005
Here's a reworked version that eliminates a call (the common implementation
for A and W) and reduces the lookup table to 0x7e entries, as suggested by
Juan Lang.
> Test cases will show which is correct, of course. I've never used the
> function. I was just pointing out that the behavior for characters above
> 0xff is different than that for characters less than or equal to 0xff.
> Inconsistency usually means incorrectness.
You are right, it's incorrect in the case where 0 is supplied as the class
value. I fixed that and added a test for it.
-Hans
Changelog:
Implement and test PathIsValidChar{A,W}.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: shlwapi_pathisvalidchar.diff
Type: text/x-diff
Size: 12054 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050201/85c31570/shlwapi_pathisvalidchar.bin
More information about the wine-patches
mailing list