microsoft / MixedRealityToolkit

The MixedRealityToolkit is a collection of scripts and components intended to accelerate the development of mixed reality applications targeting Windows Mixed Reality.
MIT License
856 stars 276 forks source link

Fix root cause of INVALID_POINTER_READ_1007_MicStreamSelector.dll!MicGetFrame #212

Closed kmather73 closed 5 years ago

kmather73 commented 5 years ago

Make sure that we check that we actually get data back before trying to access it. If outcapacityInBytes is zero and we try to access outdataInFloat we will get a ACCESS_VIOLATION error because of an INVALID_POINTER_READ which will result in RuntimeFailFast exception which will kill any app using this plugin.

msftclas commented 5 years ago

CLA assistant check
All CLA requirements met.