Commit 3909a93b authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Remove unnecessary class_guidW double check.

parent eaed90d9
...@@ -989,10 +989,7 @@ static void prepare_devices(void) ...@@ -989,10 +989,7 @@ static void prepare_devices(void)
continue; continue;
} }
size = query_reg_value( device_key, class_guidW, value, sizeof(buffer) ); if ((prop_key = reg_create_key( device_key, devpropkey_device_ispresentW,
if (size == sizeof(guid_devclass_displayW) &&
!wcscmp( (const WCHAR *)value->Data, guid_devclass_displayW ) &&
(prop_key = reg_create_key( device_key, devpropkey_device_ispresentW,
sizeof(devpropkey_device_ispresentW), 0, NULL ))) sizeof(devpropkey_device_ispresentW), 0, NULL )))
{ {
BOOL present = FALSE; BOOL present = FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment