Module: wine Branch: master Commit: d59e6d861b5f6dff75ca1c1dccb3859545344cd2 URL: https://gitlab.winehq.org/wine/wine/-/commit/d59e6d861b5f6dff75ca1c1dccb3859...
Author: Rémi Bernon rbernon@codeweavers.com Date: Fri May 17 15:50:40 2024 +0200
wineandroid: Set DEVMODEW dmSize field.
---
dlls/wineandroid.drv/init.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/wineandroid.drv/init.c b/dlls/wineandroid.drv/init.c index c8d997b7aa4..9a06d8f147b 100644 --- a/dlls/wineandroid.drv/init.c +++ b/dlls/wineandroid.drv/init.c @@ -282,6 +282,7 @@ UINT ANDROID_UpdateDisplayDevices( const struct gdi_device_manager *device_manag }; const DEVMODEW mode = { + .dmSize = sizeof(mode), .dmFields = DM_DISPLAYORIENTATION | DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL | DM_DISPLAYFLAGS | DM_DISPLAYFREQUENCY, .dmBitsPerPel = screen_bpp, .dmPelsWidth = screen_width, .dmPelsHeight = screen_height, .dmDisplayFrequency = 60,