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 - SDL_windowswindows.c: Missing dereference
Summary: SDL_windowswindows.c: Missing dereference
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 15:30 UTC by Markus Rathgeb
Modified: 2011-08-22 12:21 UTC (History)
1 user (show)

See Also:


Attachments
Fix building on windows (718 bytes, patch)
2011-07-27 15:30 UTC, Markus Rathgeb
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.