Closed jicailiu closed 7 years ago
No it returns S_OK and user is nullptr. You can't really return S_FALSE in a WinRT API as it doesn't project to anything for other language.
I'm aware of the bool operator, but I still prefer use =! nullptr as I see it as a way to emphasize I'm doing a pointer check here. I guess it's just a minor personal preference, I can change to use boolean operator if you insist.
That's a good point, thanks!
@jicailiu, Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA. Thanks, Microsoft Pull Request Bot