diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 857b939e3..6d113f2a8 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -83,8 +83,8 @@ myIsCursorIn (false) myHeight = rectangle.bottom - rectangle.top; // We change the event procedure of the control (it is important to save the old one) - SetWindowLongPtr(myHandle, GWLP_USERDATA, reinterpret_cast(this)); - myCallback = SetWindowLongPtr(myHandle, GWLP_WNDPROC, reinterpret_cast(&WindowImplWin32::GlobalOnEvent)); + SetWindowLongPtr(myHandle, GWLP_USERDATA, reinterpret_cast(this)); + myCallback = SetWindowLongPtr(myHandle, GWLP_WNDPROC, reinterpret_cast(&WindowImplWin32::GlobalOnEvent)); } }