We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1259

Summary: SDL_windowswindows.c: Missing dereference
Product: SDL Reporter: Markus Rathgeb <maggu2810>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: icculus
Version: HG 2.0   
Hardware: x86   
OS: Linux   
Attachments: Fix building on windows

Description Markus Rathgeb 2011-07-27 15:30:52 UTC
Created attachment 660 [details]
Fix building on windows

Build for windows will fail in file src/video/windows/SDL_windowswindow.c in function
void WIN_DestroyWindow(_THIS, SDL_Window * window)
at
SetWindowLongPtr(hwnd, GWLP_WNDPROC, (LONG_PTR) data->wndproc);
respective
SetWindowLong(hwnd, GWL_WNDPROC, (LONG_PTR) data->wndproc);

hwnd is not known.
It should be changed to data->hwnd.
Comment 1 Ryan C. Gordon 2011-08-22 12:21:02 UTC
This was fixed in hg changeset f40f9d3ca2bc, thanks!

--ryan.