From 83a713801b989294d8c414ca81a1852b939497c6 Mon Sep 17 00:00:00 2001 From: Shaun Ren Date: Sun, 26 Nov 2023 11:06:49 -0500 Subject: [PATCH] winex11.drv: fshack: Fix initializing fs_monitor dmDeviceName with uninitialized string. --- dlls/winex11.drv/fs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dlls/winex11.drv/fs.c b/dlls/winex11.drv/fs.c index 4113d1eb4e6..dd919ad823f 100644 --- a/dlls/winex11.drv/fs.c +++ b/dlls/winex11.drv/fs.c @@ -432,7 +432,6 @@ static BOOL fs_get_current_mode( ULONG_PTR adapter_id, DEVMODEW *mode ) static LONG fs_set_current_mode( ULONG_PTR adapter_id, const DEVMODEW *user_mode ) { - WCHAR device_name[CCHDEVICENAME]; struct fs_monitor *fs_monitor; DEVMODEW real_mode; double scale; @@ -462,7 +461,7 @@ static LONG fs_set_current_mode( ULONG_PTR adapter_id, const DEVMODEW *user_mode fs_monitor->user_mode = *user_mode; fs_monitor->real_mode = real_mode; - lstrcpyW( fs_monitor->user_mode.dmDeviceName, device_name ); + lstrcpyW( fs_monitor->user_mode.dmDeviceName, L"fshack" ); if (is_detached_mode( user_mode )) {