a3e5344cce
We can't compare addresses of ComPtr for self-reference directly because the address-of operator is overloaded, causing a compiler error. This fix more or less matches the WRL implementation.