Merge pull request #20 from PatriceVignola/fix-wrladapter-compilation

Fix compilation of the wrladapter header
This commit is contained in:
Jesse Natalie 2021-08-06 16:25:10 -07:00 committed by GitHub
commit bb7444d5c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -717,8 +717,8 @@ namespace WRL
ULONG ref = InternalRelease();
if (ref == 0)
{
~RuntimeClassImpl();
delete[] static_cast<char*>(this);
this->~RuntimeClassImpl();
delete[] reinterpret_cast<char*>(this);
}
return ref;
@ -784,7 +784,7 @@ namespace WRL
new (buffer.get())T(std::forward<TArgs>(args)...);
}
return ComPtr<T>{buffer.release()};
return ComPtr<T>{reinterpret_cast<T*>(buffer.release())};
}
using Details::ChainInterfaces;