1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

win32u: Remove unnecessary class_guidW double check.

This commit is contained in:
Rémi Bernon 2024-02-27 07:39:10 +01:00 committed by Alexandre Julliard
parent eaed90d9b4
commit 3909a93bc2

View file

@ -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;