From e20dba81daf74442a423ba344fc1e71fbf139d13 Mon Sep 17 00:00:00 2001 From: Sergey Svistunov Date: Sun, 12 Jan 2025 15:22:08 +0300 Subject: [PATCH] Fixed SetWindowLongPtr constants --- Source/Gui/GuiTools.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Gui/GuiTools.cpp b/Source/Gui/GuiTools.cpp index 8e179d9f..c1d3af5e 100644 --- a/Source/Gui/GuiTools.cpp +++ b/Source/Gui/GuiTools.cpp @@ -642,16 +642,16 @@ BOOL IsWindowVisibleOnScreen(HWND hwnd) { } void SetWindowPointer(HWND hwnd, void* pthis) { - ::SetWindowLongPtr(hwnd, GWL_USERDATA, reinterpret_cast(pthis)); + ::SetWindowLongPtr(hwnd, GWLP_USERDATA, reinterpret_cast(pthis)); } bool CheckWindowPointer(HWND hwnd, void* pthis) { return ::IsWindow(hwnd) - && ::GetWindowLongPtr(hwnd, GWL_USERDATA) == reinterpret_cast(pthis); + && ::GetWindowLongPtr(hwnd, GWLP_USERDATA) == reinterpret_cast(pthis); } void ClearWindowPointer(HWND hwnd) { - ::SetWindowLongPtr(hwnd, GWL_USERDATA, 0); + ::SetWindowLongPtr(hwnd, GWLP_USERDATA, 0); } }