diff --git a/source/Platform/Win32/Win32Display.cpp b/source/Platform/Win32/Win32Display.cpp index 90271a0..67993fa 100644 --- a/source/Platform/Win32/Win32Display.cpp +++ b/source/Platform/Win32/Win32Display.cpp @@ -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) {