From aade008582f3c4dca4152599fdf8e53dca96354c Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Sun, 9 May 2010 18:06:50 +0000 Subject: [PATCH] Minor fix (changed long to LONG_PTR) in WindowImplWin32::GlobalOnEvent git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1519 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Window/Win32/WindowImplWin32.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 40fc5a4b0..c36c70dee 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -818,7 +818,7 @@ LRESULT CALLBACK WindowImplWin32::GlobalOnEvent(HWND handle, UINT message, WPARA if (message == WM_CREATE) { // Get WindowImplWin32 instance (it was passed as the last argument of CreateWindow) - long window = reinterpret_cast(reinterpret_cast(lParam)->lpCreateParams); + LONG_PTR window = (LONG_PTR)reinterpret_cast(lParam)->lpCreateParams; // Set as the "user data" parameter of the window SetWindowLongPtr(handle, GWLP_USERDATA, window);