1
0
Fork 0

Remove unnecessary transmute

This commit is contained in:
Jussi Viiri 2023-06-10 21:58:31 +03:00
parent e47f25facd
commit 4f0a71736c

View file

@ -916,7 +916,7 @@ impl DropTarget {
{
if IsEqualIID(&*riid, &IUnknown::uuidof()) || IsEqualIID(&*riid, &IDropTarget::uuidof()){
Self::add_ref(this);
*ppvObject = unsafe { transmute(this) };
*ppvObject = this as *mut winapi::ctypes::c_void;
return S_OK;
}