diff --git a/src/win/window.rs b/src/win/window.rs index 289ec65..4526b9f 100644 --- a/src/win/window.rs +++ b/src/win/window.rs @@ -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; }