mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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
This commit is contained in:
parent
1d9feb6e01
commit
aade008582
@ -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<long>(reinterpret_cast<CREATESTRUCT*>(lParam)->lpCreateParams);
|
||||
LONG_PTR window = (LONG_PTR)reinterpret_cast<CREATESTRUCT*>(lParam)->lpCreateParams;
|
||||
|
||||
// Set as the "user data" parameter of the window
|
||||
SetWindowLongPtr(handle, GWLP_USERDATA, window);
|
||||
|
Loading…
Reference in New Issue
Block a user