From 2aa4b9936cfcfa413c6f348b65ccd8c567e5d77a Mon Sep 17 00:00:00 2001 From: John_He Date: Wed, 28 May 2014 12:37:35 +0800 Subject: [PATCH] Fix mingw64 build: convert from LPVOID to DWORD losses precision on 64-bit platform. --- cocos/audio/win32/MciPlayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/audio/win32/MciPlayer.cpp b/cocos/audio/win32/MciPlayer.cpp index 7811beaa29..a522b165d9 100644 --- a/cocos/audio/win32/MciPlayer.cpp +++ b/cocos/audio/win32/MciPlayer.cpp @@ -142,9 +142,9 @@ void MciPlayer::Resume() MCI_STATUS_PARMS mciStatusParms; MCI_PLAY_PARMS mciPlayParms; mciStatusParms.dwItem = MCI_STATUS_POSITION; - _SendGenericCommand(MCI_STATUS, MCI_STATUS_ITEM,(DWORD)(LPVOID)&mciStatusParms); // MCI_STATUS + _SendGenericCommand(MCI_STATUS, MCI_STATUS_ITEM, reinterpret_cast(&mciStatusParms)); // MCI_STATUS mciPlayParms.dwFrom = mciStatusParms.dwReturn; // get position - _SendGenericCommand(MCI_PLAY, MCI_FROM, (DWORD)(LPVOID)&mciPlayParms); // MCI_FROM + _SendGenericCommand(MCI_PLAY, MCI_FROM, reinterpret_cast(&mciPlayParms)); // MCI_FROM } else {