# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1048636199 0 # Node ID 144a940112653e5b366da5e69946dd592d945739 # Parent 315812516608750a366901f6fdf7d0a724c74f67 If key code is extended pass 0 as the character parameter. Also fixed an errantly missing typecast. diff -r 315812516608 -r 144a94011265 win/dw.c --- a/win/dw.c Tue Mar 25 23:44:57 2003 +0000 +++ b/win/dw.c Tue Mar 25 23:49:59 2003 +0000 @@ -1419,7 +1419,7 @@ if(mp2 & (1 << 29)) special |= KC_ALT; - result = keypressfunc(tmp->window, (char)mp1, mp1, special, tmp->data); + result = keypressfunc(tmp->window, mp1 > 255 ? 0 : (char)mp1, mp1, special, tmp->data); tmp = NULL; } } @@ -5938,7 +5938,7 @@ if(TreeView_GetItem(handle, &tvi)) ptrs = (void **)tvi.lParam; - _dw_tree_delete_recursive(handle, item); + _dw_tree_delete_recursive(handle, (HTREEITEM)item); TreeView_DeleteItem(handle, (HTREEITEM)item); if(ptrs) free(ptrs);