Mercurial > dwindows
diff os2/dw.c @ 418:4be57ee7e006
Fix a crash in dw_window_pointer when the window handle is HWND_DESKTOP.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 15 May 2003 04:03:03 +0000 |
parents | a4197ddfc50d |
children | 4fe2df53ec9f |
line wrap: on
line diff
--- a/os2/dw.c Thu May 15 03:44:01 2003 +0000 +++ b/os2/dw.c Thu May 15 04:03:03 2003 +0000 @@ -3656,10 +3656,13 @@ */ void API dw_window_pointer(HWND handle, int pointertype) { - dw_window_set_data(handle, "_dw_pointer", - pointertype < 65535 ? - (void *)WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE) - : (void *)pointertype); + if(handle == HWND_DESKTOP) + WinSetPointer(handle, WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE)); + else + dw_window_set_data(handle, "_dw_pointer", + pointertype < 65535 ? + (void *)WinQuerySysPointer(HWND_DESKTOP,pointertype, FALSE) + : (void *)pointertype); } /*