From 115100b86d8c3f75afd204965aa8ad840fba6312 Mon Sep 17 00:00:00 2001 From: Sergey Nikiforov Date: Tue, 9 Mar 2021 23:05:17 +0300 Subject: [PATCH] fix broken "Core Throughput" on Win64 --- plat/win/w32cons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plat/win/w32cons.cpp b/plat/win/w32cons.cpp index dba446637..b15cc2974 100644 --- a/plat/win/w32cons.cpp +++ b/plat/win/w32cons.cpp @@ -2063,7 +2063,7 @@ LRESULT CALLBACK __w16AboutBox( HWND dialog, UINT msg, WPARAM wParam, LPARAM lPa { SelectObject( hDC, dd->hBGBrush ); #ifdef DWLP_MSGRESULT - SetWindowLongPtr(dialog, DWLP_MSGRESULT, (LONG)dd->hBGBrush ); + SetWindowLongPtr(dialog, DWLP_MSGRESULT, (LONG_PTR)dd->hBGBrush ); #else SetWindowLong(dialog, DWL_MSGRESULT, (LONG)dd->hBGBrush ); #endif @@ -2465,7 +2465,7 @@ LRESULT CALLBACK __w16GraphView( HWND dialog, UINT msg, WPARAM wParam, LPARAM lP if (dd) { #ifdef DWLP_USER - SetWindowLongPtr(dialog, DWLP_USER, (LONG)dd); + SetWindowLongPtr(dialog, DWLP_USER, (LONG_PTR)dd); if (dd != ((struct dlgdata *)GetWindowLongPtr(dialog, DWLP_USER))) #else SetWindowLong(dialog, DWL_USER, (LONG)dd);