Windows: Protect against null volp dereference