mirror of
https://github.com/microsoft/DirectX-Headers.git
synced 2024-11-27 11:53:31 +08:00
Merge pull request #20 from PatriceVignola/fix-wrladapter-compilation
Fix compilation of the wrladapter header
This commit is contained in:
commit
bb7444d5c5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user