mciavi32: Fix compilation warnings in 64-bit mode.

This commit is contained in:
Dmitry Timoshkov 2007-05-31 23:00:52 +09:00 committed by Alexandre Julliard
parent 29b00e1a8c
commit d30e453392
3 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ static DWORD MCIAVI_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
wma->wCommandTable = mciLoadCommandResource(MCIAVI_hInstance, mciAviWStr, 0);
modp->wCustomCommandTable = wma->wCommandTable;
modp->wType = MCI_DEVTYPE_DIGITAL_VIDEO;
mciSetDriverData(wma->wDevID, (DWORD)wma);
mciSetDriverData(wma->wDevID, (DWORD_PTR)wma);
return modp->wDeviceID;
}

View File

@ -476,7 +476,7 @@ BOOL MCIAVI_OpenVideo(WINE_MCIAVI* wma)
}
if (ICSendMessage(wma->hic, ICM_DECOMPRESS_BEGIN,
(DWORD)wma->inbih, (DWORD)wma->outbih) != ICERR_OK) {
(DWORD_PTR)wma->inbih, (DWORD_PTR)wma->outbih) != ICERR_OK) {
WARN("Can't begin decompression\n");
return FALSE;
}

View File

@ -137,9 +137,9 @@ BOOL MCIAVI_CreateWindow(WINE_MCIAVI* wma, DWORD dwFlags, LPMCI_DGV_OPEN_PARM
dwStyle, rc.left, rc.top,
rc.right, rc.bottom,
hParent, 0, MCIAVI_hInstance,
(LPVOID)wma->wDevID);
ULongToPtr(wma->wDevID));
wma->hWndPaint = wma->hWnd;
return (BOOL)wma->hWnd;
return wma->hWnd != 0;
}
/***************************************************************************