Removed direct references to CLASS internals.
diff --git a/windows/message.c b/windows/message.c
index ed19b36..8933b63 100644
--- a/windows/message.c
+++ b/windows/message.c
@@ -180,7 +180,7 @@
* note that ...MOUSEMOVEs can slip in between
* ...BUTTONDOWN and ...BUTTONDBLCLK messages */
- if( pWnd->class->style & CS_DBLCLKS || ht != HTCLIENT )
+ if(GetClassLongA(hWnd, GCL_STYLE) & CS_DBLCLKS || ht != HTCLIENT )
{
if ((message == clk_message) && (hWnd == clk_hwnd) &&
(msg->time - dblclk_time_limit < doubleClickSpeed) &&
@@ -1091,7 +1091,7 @@
if ((wndPtr = WIN_FindWndPtr(msg->hwnd)))
{
if( wndPtr->dwStyle & WS_MINIMIZE &&
- wndPtr->class->hIcon )
+ (HICON) GetClassLongA(wndPtr->hwndSelf, GCL_HICON) )
{
msg->message = WM_PAINTICON;
msg->wParam = 1;