5 Jul
2023
5 Jul
'23
8:56 p.m.
Rémi Bernon (@rbernon) commented about dlls/windows.devices.geolocation.geolocator/main.c:
+ +static ULONG WINAPI weak_reference_Release(IWeakReference *iface) +{ + struct geolocator *impl = impl_from_IWeakReference(iface); + ULONG ref = InterlockedDecrement(&impl->ref_weak); + if (!ref) + free(impl); + return ref; +} + +static HRESULT WINAPI weak_reference_Resolve(IWeakReference *iface, REFIID iid, IInspectable **out) +{ + HRESULT hr; + LONG ref; + struct geolocator *impl = impl_from_IWeakReference(iface); + TRACE("iface %p, iid %s, out %p stub.\n", iface, debugstr_guid(iid), out);
struct geolocator *impl = impl_from_IWeakReference(iface);
HRESULT hr;
LONG ref;
TRACE("iface %p, iid %s, out %p stub.\n", iface, debugstr_guid(iid), out);
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/3189#note_38072