VirtualBox

Ignore:
Timestamp:
Jul 11, 2018 2:41:08 PM (7 years ago)
Author:
vboxsync
Message:

VBoxUSB/os2: UsbRegisterChangeNotification - make sure EventSet.ulCaps
is always properly initialized.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/os2/usbcalls.c

    r33540 r73064  
    421421  ulSize = sizeof(EventSet);
    422422  EventSet.ulSize = ulSize;
     423  EventSet.ulCaps = 0;
    423424
    424425  if(hDeviceAdded!=0)
     
    428429    if(rc)
    429430      return rc;
    430     EventSet.ulCaps         = DEV_SEM_ADD;
     431    EventSet.ulCaps         |= DEV_SEM_ADD;
    431432    EventSet.ulSemDeviceAdd = hDeviceAdded;
    432433  }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette