Module: wine Branch: master Commit: a5563e259c11f23236c1b93d9ff0ecfa1aa4dba7 URL: https://gitlab.winehq.org/wine/wine/-/commit/a5563e259c11f23236c1b93d9ff0ecf...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Tue Aug 15 20:59:29 2023 +0300
comctl32: Use iswalnum() to filter alpha numeric characters from unicode messages.
Signed-off-by: Dmitry Timoshkov dmitry@baikal.ru
---
dlls/comctl32/treeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c index c4e8d926941..c531ad75370 100644 --- a/dlls/comctl32/treeview.c +++ b/dlls/comctl32/treeview.c @@ -4664,7 +4664,7 @@ static INT TREEVIEW_ProcessLetterKeys(TREEVIEW_INFO *infoPtr, WPARAM charCode, L if (!charCode || !keyData) return 0;
/* only allow the valid WM_CHARs through */ - if (!isalnum(charCode) && + if (!iswalnum(charCode) && charCode != '.' && charCode != '`' && charCode != '!' && charCode != '@' && charCode != '#' && charCode != '$' && charCode != '%' && charCode != '^' && charCode != '&' &&