diff --git a/polymer/eduke32/source/sw/src/startwin.game.c b/polymer/eduke32/source/sw/src/startwin.game.c index 024f2f599..394b6f768 100644 --- a/polymer/eduke32/source/sw/src/startwin.game.c +++ b/polymer/eduke32/source/sw/src/startwin.game.c @@ -16,7 +16,9 @@ #define WIN32_LEAN_AND_MEAN #include #include +#ifndef _WIN32_IE #define _WIN32_IE 0x0300 +#endif #include #include @@ -466,7 +468,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, case WM_CTLCOLORSTATIC: if ((HWND)lParam == pages[TAB_MESSAGES]) - return (BOOL)GetSysColorBrush(COLOR_WINDOW); + return (BOOL)(intptr_t)GetSysColorBrush(COLOR_WINDOW); break; default: break; diff --git a/polymer/eduke32/source/testgame/src/startwin.game.c b/polymer/eduke32/source/testgame/src/startwin.game.c index 5ea8e8bd0..a234aafb1 100644 --- a/polymer/eduke32/source/testgame/src/startwin.game.c +++ b/polymer/eduke32/source/testgame/src/startwin.game.c @@ -9,7 +9,9 @@ #define WIN32_LEAN_AND_MEAN #include #include +#ifndef _WIN32_IE #define _WIN32_IE 0x0600 +#endif #include #include @@ -296,7 +298,7 @@ static INT_PTR CALLBACK startup_dlgproc(HWND hwndDlg, UINT uMsg, WPARAM wParam, case WM_CTLCOLORSTATIC: if ((HWND)lParam == pages[TAB_MESSAGES]) - return (BOOL)GetSysColorBrush(COLOR_WINDOW); + return (BOOL)(intptr_t)GetSysColorBrush(COLOR_WINDOW); break; default: break;