Dmitry Timoshkov : mcicda: Fix compilation warnings in 64-bit mode.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Jun 1 06:44:29 CDT 2007


Module: wine
Branch: master
Commit: 2f0bf36d6dfc1f1fa6b6d461342564c1d187c8b9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f0bf36d6dfc1f1fa6b6d461342564c1d187c8b9

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu May 31 23:01:05 2007 +0900

mcicda: Fix compilation warnings in 64-bit mode.

---

 dlls/mcicda/mcicda.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/mcicda/mcicda.c b/dlls/mcicda/mcicda.c
index 66acc5b..3273ecd 100644
--- a/dlls/mcicda/mcicda.c
+++ b/dlls/mcicda/mcicda.c
@@ -72,7 +72,7 @@ static	DWORD	MCICDA_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
 	return 0;
 
     wmcda->wDevID = modp->wDeviceID;
-    mciSetDriverData(wmcda->wDevID, (DWORD)wmcda);
+    mciSetDriverData(wmcda->wDevID, (DWORD_PTR)wmcda);
     modp->wCustomCommandTable = MCI_NO_COMMAND_TABLE;
     modp->wType = MCI_DEVTYPE_CD_AUDIO;
     return modp->wDeviceID;
@@ -293,7 +293,7 @@ static DWORD MCICDA_Open(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSW lpOpenPar
     }
     if (dwFlags & MCI_OPEN_ELEMENT) {
         if (dwFlags & MCI_OPEN_ELEMENT_ID) {
-            WARN("MCI_OPEN_ELEMENT_ID %8x ! Abort\n", (DWORD)lpOpenParms->lpstrElementName);
+            WARN("MCI_OPEN_ELEMENT_ID %p! Abort\n", lpOpenParms->lpstrElementName);
             return MCIERR_NO_ELEMENT_ALLOWED;
         }
         TRACE("MCI_OPEN_ELEMENT element name: %s\n", debugstr_w(lpOpenParms->lpstrElementName));




More information about the wine-cvs mailing list