diff --git a/src/dxgi/dxgi_output.cpp b/src/dxgi/dxgi_output.cpp index 8d3e78f8..3d79bdfc 100644 --- a/src/dxgi/dxgi_output.cpp +++ b/src/dxgi/dxgi_output.cpp @@ -263,7 +263,8 @@ namespace dxvk { // Walk over all modes that the display supports and // return those that match the requested format etc. - DEVMODEW devMode; + DEVMODEW devMode = { }; + devMode.dmSize = sizeof(DEVMODEW); uint32_t srcModeId = 0; uint32_t dstModeId = 0;