Skip to content

Commit

Permalink
winex11.drv: fshack: Fix initializing fs_monitor dmDeviceName with un…
Browse files Browse the repository at this point in the history
…initialized string.
  • Loading branch information
shaunren committed Nov 26, 2023
1 parent 34e4e3b commit 83a7138
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dlls/winex11.drv/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ))
{
Expand Down

0 comments on commit 83a7138

Please sign in to comment.