From: Paul Gofman <pgofman@codeweavers.com> --- dlls/mciavi32/wnd.c | 14 ++++++++++++++ dlls/winmm/tests/mci.c | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/dlls/mciavi32/wnd.c b/dlls/mciavi32/wnd.c index 643478f018d..bf3b23e393a 100644 --- a/dlls/mciavi32/wnd.c +++ b/dlls/mciavi32/wnd.c @@ -78,6 +78,20 @@ static LRESULT WINAPI MCIAVI_WindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPA } return 1; + case WM_SIZE: + { + WINE_MCIAVI *wma = (WINE_MCIAVI *)mciGetDriverData(GetWindowLongW(hWnd, 0)); + + if (!wma) + return DefWindowProcW(hWnd, uMsg, wParam, lParam); + + EnterCriticalSection(&wma->cs); + wma->dest.right = LOWORD(lParam); + wma->dest.bottom = HIWORD(lParam); + LeaveCriticalSection(&wma->cs); + return DefWindowProcW(hWnd, uMsg, wParam, lParam); + } + default: return DefWindowProcW(hWnd, uMsg, wParam, lParam); } diff --git a/dlls/winmm/tests/mci.c b/dlls/winmm/tests/mci.c index 5596f279c4e..675377cda79 100644 --- a/dlls/winmm/tests/mci.c +++ b/dlls/winmm/tests/mci.c @@ -1979,7 +1979,7 @@ static void test_scaling(HWND hwnd) Sleep(30); err = mciSendCommandW(id, MCI_WHERE, MCI_DGV_WHERE_DESTINATION | MCI_WAIT, (DWORD_PTR)&parm); ok(!err, "Got %s.\n", dbg_mcierr(err)); - todo_wine ok(EqualRect(&parm.where.rc, &new_rect), "got %s, expected %s.\n", + ok(EqualRect(&parm.where.rc, &new_rect), "got %s, expected %s.\n", wine_dbgstr_rect(&parm.where.rc), wine_dbgstr_rect(&new_rect)); } err = mciSendCommandW(id, MCI_CLOSE, 0, 0); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/10560