1
0
Fork 0

source/Platform/Win32/Win32Display.cpp: Use SetWindowLongPtr/GetWindowLongPtr as LONG_PTR supports 64bit addresses.

This commit is contained in:
Henrik Hautakoski 2022-09-10 13:59:40 +02:00
parent e97844a6e6
commit 8d57b3a72c

View file

@ -333,11 +333,11 @@ LRESULT CALLBACK Win32Display::staticWndProc(HWND handle, UINT message, WPARAM w
if (message == WM_NCCREATE) {
LONG_PTR ptr = (LONG_PTR) ((LPCREATESTRUCT)lParam)->lpCreateParams;
::SetWindowLong(handle, GWL_USERDATA, ptr);
::SetWindowLongPtr(handle, GWL_USERDATA, ptr);
display = (Win32Display*) ptr;
} else {
display = (Win32Display*) ::GetWindowLong(handle, GWL_USERDATA);
display = (Win32Display*) ::GetWindowLongPtr(handle, GWL_USERDATA);
}
if (display) {