Skip to content

Commit 8a38f3c

Browse files
Copilotkennykerr
andauthored
Add IObservableVector<T> stock implementation to windows-collections (#4324)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: kennykerr <9845234+kennykerr@users.noreply.github.com> Co-authored-by: Kenny Kerr <kenny@kennykerr.ca>
1 parent fb5dacd commit 8a38f3c

48 files changed

Lines changed: 1598 additions & 735 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

crates/libs/bindgen/src/types/delegate.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ impl Delegate {
136136
*iid == <windows_core::IUnknown as windows_core::Interface>::IID ||
137137
*iid == <windows_core::imp::IAgileObject as windows_core::Interface>::IID {
138138
&mut (*this).vtable as *mut _ as _
139-
} else if *iid == <windows_core::imp::IMarshal as windows_core::Interface>::IID {
140-
(*this).count.add_ref();
141-
return windows_core::imp::marshaler(core::mem::transmute(&mut (*this).vtable as *mut _ as *mut core::ffi::c_void), interface);
142139
} else {
140+
#[cfg(windows)]
141+
if *iid == <windows_core::imp::IMarshal as windows_core::Interface>::IID {
142+
(*this).count.add_ref();
143+
return windows_core::imp::marshaler(core::mem::transmute(&mut (*this).vtable as *mut _ as *mut core::ffi::c_void), interface);
144+
}
143145
core::ptr::null_mut()
144146
};
145147

0 commit comments

Comments
 (0)