Make LISTVIEW_ProcessLetterKeys accept unicode characters
Igor Tarasov
tarasov.igor at gmail.com
Wed Feb 18 21:01:21 CST 2009
Using isalnum made it unuseable for non-latin characters.
-------------- next part --------------
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index b8545fd..6b89766 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -1530,7 +1530,7 @@ static INT LISTVIEW_ProcessLetterKeys(LISTVIEW_INFO *infoPtr, WPARAM charCo
if (!charCode || !keyData) return 0;
/* only allow the valid WM_CHARs through */
- if (!isalnum(charCode) &&
+ if (!isalnumW(charCode) &&
charCode != '.' && charCode != '`' && charCode != '!' &&
charCode != '@' && charCode != '#' && charCode != '$' &&
charCode != '%' && charCode != '^' && charCode != '&' &&
More information about the wine-patches
mailing list