Fix mingw64 build: convert from LPVOID to DWORD losses precision on 64-bit platform.

This commit is contained in:
John_He 2014-05-28 12:37:35 +08:00
parent a5fe9be8a2
commit 2aa4b9936c
1 changed files with 2 additions and 2 deletions

View File

@ -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<DWORD_PTR>(&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<DWORD_PTR>(&mciPlayParms)); // MCI_FROM
}
else
{