From: Akihiro Sagawa sagawa.aki@gmail.com
Signed-off-by: Akihiro Sagawa sagawa.aki@gmail.com --- dlls/mciqtz32/mciqtz.c | 6 ++++++ dlls/winmm/tests/mci.c | 8 +------- 2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dlls/mciqtz32/mciqtz.c b/dlls/mciqtz32/mciqtz.c index 92622d848a9..d8cc55ba2b9 100644 --- a/dlls/mciqtz32/mciqtz.c +++ b/dlls/mciqtz32/mciqtz.c @@ -916,6 +916,12 @@ static DWORD MCIQTZ_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_DGV_STATUS_PARMS MCI_FORMAT_RETURN_BASE + wma->time_format); ret = MCI_RESOURCE_RETURNED; break; + case MCI_DGV_STATUS_HWND: + if (wma->window) + lpParms->dwReturn = (DWORD_PTR)wma->parent; + else + ret = MCIERR_UNSUPPORTED_FUNCTION; + break; case MCI_STATUS_READY: FIXME("MCI_STATUS_READY not implemented yet\n"); return MCIERR_UNRECOGNIZED_COMMAND; diff --git a/dlls/winmm/tests/mci.c b/dlls/winmm/tests/mci.c index 9399a0fd284..8b281380a48 100644 --- a/dlls/winmm/tests/mci.c +++ b/dlls/winmm/tests/mci.c @@ -1475,12 +1475,7 @@ static void test_video_window(HWND hwnd) parm.status.dwItem = MCI_DGV_STATUS_HWND; parm.status.dwReturn = 0xdeadbeef; err = mciSendCommandW(wDeviceID, MCI_STATUS, MCI_STATUS_ITEM, (DWORD_PTR)&parm); - todo_wine ok(!err,"mciCommand status hwnd returned %s\n", dbg_mcierr(err)); - if (err) - { - skip("MCI_DGV_STATUS_HWND got an error\n"); - goto close; - } + ok(!err,"mciCommand status hwnd returned %s\n", dbg_mcierr(err)); video_window = (HWND)parm.status.dwReturn;
ok(IsWindow(video_window), "video window %p doesn't exist.\n", video_window); @@ -1490,7 +1485,6 @@ static void test_video_window(HWND hwnd) expected = (WS_CLIPCHILDREN | WS_CLIPSIBLINGS | WS_OVERLAPPEDWINDOW) & ~WS_MAXIMIZEBOX; ok(style == expected, "expected style %08lx, got %08lx\n", expected, style);
-close: err = mciSendCommandW(wDeviceID, MCI_CLOSE, 0, 0); ok(!err,"mciCommand close returned %s\n", dbg_mcierr(err));