Rémi Bernon : win32u: Remove unnecessary class_guidW double check.
Module: wine Branch: master Commit: 3909a93bc2b7f6749de40d9899659753b4251475 URL: https://gitlab.winehq.org/wine/wine/-/commit/3909a93bc2b7f6749de40d989965975... Author: Rémi Bernon <rbernon(a)codeweavers.com> Date: Tue Feb 27 07:39:10 2024 +0100 win32u: Remove unnecessary class_guidW double check. --- dlls/win32u/sysparams.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dlls/win32u/sysparams.c b/dlls/win32u/sysparams.c index e8f9ed7816a..dfe5cafd2f2 100644 --- a/dlls/win32u/sysparams.c +++ b/dlls/win32u/sysparams.c @@ -989,10 +989,7 @@ static void prepare_devices(void) continue; } - size = query_reg_value( device_key, class_guidW, value, sizeof(buffer) ); - if (size == sizeof(guid_devclass_displayW) && - !wcscmp( (const WCHAR *)value->Data, guid_devclass_displayW ) && - (prop_key = reg_create_key( device_key, devpropkey_device_ispresentW, + if ((prop_key = reg_create_key( device_key, devpropkey_device_ispresentW, sizeof(devpropkey_device_ispresentW), 0, NULL ))) { BOOL present = FALSE;
participants (1)
-
Alexandre Julliard