ntoskrnl.exe: Set reserved to 0 in pnp WM_DEVICECHANGE broadcast.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=49488
Signed-off-by: Jefferson Carpenter <jeffersoncarpenter2@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jefferson Carpenter 2020-06-30 17:10:00 +00:00 committed by Alexandre Julliard
parent 211d495f79
commit ab6f8ba0d1
1 changed files with 3 additions and 2 deletions

View File

@ -782,9 +782,10 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
if ((broadcast = heap_alloc( len ))) if ((broadcast = heap_alloc( len )))
{ {
broadcast->dbcc_size = len; broadcast->dbcc_size = len;
broadcast->dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE; broadcast->dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
broadcast->dbcc_classguid = iface->interface_class; broadcast->dbcc_reserved = 0;
broadcast->dbcc_classguid = iface->interface_class;
lstrcpynW( broadcast->dbcc_name, name->Buffer, namelen + 1 ); lstrcpynW( broadcast->dbcc_name, name->Buffer, namelen + 1 );
send_devicechange( enable ? DBT_DEVICEARRIVAL : DBT_DEVICEREMOVECOMPLETE, broadcast, len ); send_devicechange( enable ? DBT_DEVICEARRIVAL : DBT_DEVICEREMOVECOMPLETE, broadcast, len );
heap_free( broadcast ); heap_free( broadcast );