source/Platform/Win32/Win32Display.cpp: Use SetWindowLongPtr/GetWindowLongPtr as LONG_PTR supports 64bit addresses.
This commit is contained in:
parent
e97844a6e6
commit
8d57b3a72c
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue