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 951

Summary: bad cast in native_midi_win32.c (mingw-w64 / x64)
Product: SDL_mixer Reporter: Ozkan Sezer <sezeroz>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 1.2.11   
Hardware: Other   
OS: Windows (All)   
Attachments: w64 patch for native_midi_win32.c

Description Ozkan Sezer 2010-02-14 08:07:08 UTC
This seems to have been missed during recent several native_midi_win32.c fixes: The cast must be made to DWORD_PTR which is pointer-wide not to DWORD which is strictly 32 bits.  Tiny patch attached.  Compile tested against SDL-1.2 (patched according to bug #943) and using a mingw-w64 cross-toolchain configured for x86_64-w64-mingw32.

--
Ozkan
Comment 1 Ozkan Sezer 2010-02-14 08:08:00 UTC
Created attachment 493 [details]
w64 patch for native_midi_win32.c
Comment 2 Ryan C. Gordon 2010-02-16 07:31:03 UTC
Fixed in svn revision #5554, thanks!

--ryan.