Commit f65d4c5a authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

mciqtz32: Add command table from mciavi32.

parent f5715f96
......@@ -8,6 +8,8 @@ IMPORTS = strmiids oleaut32 ole32 winmm user32 kernel32
C_SRCS = \
mciqtz.c
RC_SRCS = version.rc
RC_SRCS = \
mciavi_res.rc \
version.rc
@MAKE_DLL_RULES@
......@@ -73,6 +73,7 @@ static WINE_MCIQTZ* MCIQTZ_mciGetOpenDev(UINT wDevID)
static DWORD MCIQTZ_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
{
WINE_MCIQTZ* wma;
static const WCHAR mciAviWStr[] = {'M','C','I','A','V','I',0};
TRACE("(%s, %p)\n", debugstr_w(str), modp);
......@@ -84,7 +85,9 @@ static DWORD MCIQTZ_drvOpen(LPCWSTR str, LPMCI_OPEN_DRIVER_PARMSW modp)
if (!wma)
return 0;
modp->wType = MCI_DEVTYPE_DIGITAL_VIDEO;
wma->wDevID = modp->wDeviceID;
modp->wCustomCommandTable = wma->command_table = mciLoadCommandResource(MCIQTZ_hInstance, mciAviWStr, 0);
mciSetDriverData(wma->wDevID, (DWORD_PTR)wma);
return modp->wDeviceID;
......@@ -105,6 +108,7 @@ static DWORD MCIQTZ_drvClose(DWORD dwDevID)
/* finish all outstanding things */
MCIQTZ_mciClose(dwDevID, MCI_WAIT, NULL);
mciFreeCommandResource(wma->command_table);
mciSetDriverData(dwDevID, 0);
HeapFree(GetProcessHeap(), 0, wma);
return 1;
......
......@@ -33,6 +33,7 @@ typedef struct {
IMediaControl* pmctrl;
BOOL started;
DWORD time_format;
UINT command_table;
} WINE_MCIQTZ;
#endif /* __WINE_PRIVATE_MCIQTZ_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment