Clearing the structure passed in, allows Chromium to calculate a fallback value for the refresh rate.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53016
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com
From: Alistair Leslie-Hughes leslie_alistair@hotmail.com
Clearing the structure passed in, allows Chromium to calculated failback values when refreshing windows.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53016
Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com --- dlls/dwmapi/dwmapi_main.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/dwmapi/dwmapi_main.c b/dlls/dwmapi/dwmapi_main.c index 9defcb14373..6bb086a87d1 100644 --- a/dlls/dwmapi/dwmapi_main.c +++ b/dlls/dwmapi/dwmapi_main.c @@ -226,6 +226,9 @@ HRESULT WINAPI DwmGetCompositionTimingInfo(HWND hwnd, DWM_TIMING_INFO *info)
if(!i++) FIXME("(%p %p)\n", hwnd, info);
+ memset(info, 0, info->cbSize); + info->cbSize = sizeof(DWM_TIMING_INFO); + return S_OK; }