# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1348718208 0 # Node ID 68e37fee2b0582ad403891fab9d4b1f11afeaca3 # Parent 165f6ffa8176c5697201fdd357a75a9ac96dad45 Similar change for dw_window_function() on OS/2 for consistency. diff -r 165f6ffa8176 -r 68e37fee2b05 os2/dw.c --- a/os2/dw.c Thu Sep 27 03:08:03 2012 +0000 +++ b/os2/dw.c Thu Sep 27 03:56:48 2012 +0000 @@ -12907,7 +12907,7 @@ */ void API dw_window_function(HWND handle, void *function, void *data) { - WinSendMsg(handle, WM_USER, (MPARAM)function, (MPARAM)data); + WinSendMsg(_toplevel_window(handle), WM_USER, (MPARAM)function, (MPARAM)data); } /* Functions for managing the user data lists that are associated with