Chromium Code Reviews
DescriptionCheck if null pointer is provided in DeviceWatcher callbacks
Callbacks from DeviceWatcher events occasionally provide null pointers for
device information and handle interfaces. For example,
Midi{In,Out}Port.FromIdAsync return null handles in IAsyncOperation results if
the requested device is occupied by another application using legacy APIs.
DeviceWatcher.Removed event is also observed to provide null
IDeviceInformationUpdate pointers, but we are still unable to reproduce the
problem.
Additional checks in DeviceWatcher callbacks should be added to prevent crashes
before shipping this feature as default on Windows 10 hosts. We may also want to
collect statistics on this issue in the future.
BUG=645403
Committed: https://crrev.com/500c32be9f547a6e4ea818672ed62e34399b1916
Cr-Commit-Position: refs/heads/master@{#419694}
Patch Set 1 #
Messages
Total messages: 8 (3 generated)
|
|||||||||||||||||||