X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fvideo_output%2Fmsw%2Fcommon.c;h=f39dc35382ac380cf301b02cf7db0fdb04d27462;hb=3278da0b3070e0f76505fa360ede498c402a462a;hp=ff7466f562074a6ebbe8c750c8614ad17e9d3107;hpb=fb95a7487c9b4373d84b6fbb0a13406d16ced642;p=vlc diff --git a/modules/video_output/msw/common.c b/modules/video_output/msw/common.c index ff7466f562..f39dc35382 100644 --- a/modules/video_output/msw/common.c +++ b/modules/video_output/msw/common.c @@ -624,6 +624,7 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout ) HMONITOR hmon = MonitorFromWindow(p_vout->p_sys->hparent, MONITOR_DEFAULTTONEAREST); MONITORINFO mi; + mi.cbSize = sizeof(MONITORINFO); if (GetMonitorInfo(hmon, &mi)) SetWindowPos( hwnd, 0, mi.rcMonitor.left,