# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1107995935 0 # Node ID 70c8a30c254f99327d89677a64e43663a6ade6ff # Parent 314abd650968acde6bda6a9bef280f1e542ba009 Fixed incorrect calling convention on the click default handler on OS/2. diff -r 314abd650968 -r 70c8a30c254f os2/dw.c --- a/os2/dw.c Wed Feb 09 17:53:26 2005 +0000 +++ b/os2/dw.c Thu Feb 10 00:38:55 2005 +0000 @@ -948,7 +948,7 @@ unsigned long _os2_color(unsigned long color) { - return DW_RED_VALUE(color) << 16 | DW_GREEN_VALUE(color) << 8 | DW_BLUE_VALUE(color);; + return DW_RED_VALUE(color) << 16 | DW_GREEN_VALUE(color) << 8 | DW_BLUE_VALUE(color); } BOOL _MySetWindowPos(HWND hwnd, HWND parent, HWND behind, LONG x, LONG y, LONG cx, LONG cy, ULONG fl) @@ -1563,7 +1563,7 @@ { if(tmp->message == WM_COMMAND) { - int (*clickfunc)(HWND, void *) = (int (*)(HWND, void *))tmp->signalfunction; + int (* API clickfunc)(HWND, void *) = (int (* API)(HWND, void *))tmp->signalfunction; /* Make sure it's the right window, and the right ID */ if(tmp->window == handle)