vc6: use int instead of INT_PTR for callback to DialogBoxParam

This commit is contained in:
Brad Parker 2017-09-07 13:48:11 -04:00
parent 07566c51a1
commit cacef3866a

View File

@ -117,6 +117,12 @@ typedef REASON_CONTEXT POWER_REQUEST_CONTEXT, *PPOWER_REQUEST_CONTEXT, *LPPOWER_
#define MAX_MONITORS 9
#endif
#if defined(_MSC_VER) && _MSC_VER <= 1200
#define INT_PTR_COMPAT int
#else
#define INT_PTR_COMPAT INT_PTR
#endif
static HMONITOR win32_monitor_last;
static HMONITOR win32_monitor_all[MAX_MONITORS];
static unsigned win32_monitor_count = 0;
@ -131,7 +137,7 @@ void unset_doubleclick_on_titlebar(void)
doubleclick_on_titlebar = false;
}
BOOL CALLBACK PickCoreProc(HWND hDlg, UINT message,
INT_PTR_COMPAT CALLBACK PickCoreProc(HWND hDlg, UINT message,
WPARAM wParam, LPARAM lParam)
{
size_t list_size;