mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:20:43 +00:00
Revert "ntoskrnl.exe: Enforce path case in WM_DEVICECHANGE notifications.".
This reverts commit c489356d0b
.
This commit is contained in:
parent
f745900a4b
commit
80581c608c
|
@ -725,13 +725,13 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
|
|||
|
||||
size_t namelen = name->Length / sizeof(WCHAR);
|
||||
DEV_BROADCAST_DEVICEINTERFACE_W *broadcast;
|
||||
WCHAR *path, *refstr, *p, *upper_end;
|
||||
struct device_interface *iface;
|
||||
HANDLE iface_key, control_key;
|
||||
OBJECT_ATTRIBUTES attr = {0};
|
||||
struct wine_rb_entry *entry;
|
||||
UNICODE_STRING control = RTL_CONSTANT_STRING( L"Control" );
|
||||
UNICODE_STRING linked = RTL_CONSTANT_STRING( L"Linked" );
|
||||
WCHAR *path, *refstr, *p;
|
||||
UNICODE_STRING string;
|
||||
DWORD data = enable;
|
||||
NTSTATUS ret;
|
||||
|
@ -817,12 +817,6 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
|
|||
broadcast->dbcc_classguid = iface->interface_class;
|
||||
lstrcpynW( broadcast->dbcc_name, name->Buffer, namelen + 1 );
|
||||
if (namelen > 1) broadcast->dbcc_name[1] = '\\';
|
||||
|
||||
upper_end = wcschr( broadcast->dbcc_name, '#' );
|
||||
if (upper_end) upper_end = wcschr( upper_end + 1, '#' );
|
||||
while (upper_end && upper_end-- != broadcast->dbcc_name)
|
||||
*upper_end = towupper( *upper_end );
|
||||
|
||||
send_devicechange( enable ? DBT_DEVICEARRIVAL : DBT_DEVICEREMOVECOMPLETE, broadcast, len );
|
||||
heap_free( broadcast );
|
||||
}
|
||||
|
|
|
@ -1406,7 +1406,7 @@ static LRESULT WINAPI device_notify_proc(HWND window, UINT message, WPARAM wpara
|
|||
else if (IsEqualGUID(&iface->dbcc_classguid, &child_class))
|
||||
{
|
||||
++got_child_arrival;
|
||||
todo_wine ok(!strcmp(iface->dbcc_name, "\\\\?\\Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"),
|
||||
ok(!strcmp(iface->dbcc_name, "\\\\?\\Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"),
|
||||
"got name %s\n", debugstr_a(iface->dbcc_name));
|
||||
}
|
||||
break;
|
||||
|
@ -1434,7 +1434,7 @@ static LRESULT WINAPI device_notify_proc(HWND window, UINT message, WPARAM wpara
|
|||
else if (IsEqualGUID(&iface->dbcc_classguid, &child_class))
|
||||
{
|
||||
++got_child_removal;
|
||||
todo_wine ok(!strcmp(iface->dbcc_name, "\\\\?\\Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"),
|
||||
ok(!strcmp(iface->dbcc_name, "\\\\?\\Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"),
|
||||
"got name %s\n", debugstr_a(iface->dbcc_name));
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue