28 Nov
2024
28 Nov
'24
12:35 p.m.
Nikolay Sivov (@nsivov) commented about dlls/windows.networking.connectivity/network_information.c:
static HRESULT WINAPI network_information_statics_GetInternetConnectionProfile( INetworkInformationStatics *iface, IConnectionProfile **value ) { - FIXME( "iface %p, value %p stub!\n", iface, value ); - return E_NOTIMPL; + struct connection_profile *impl; + LPDWORD flags = 0; + + TRACE( "iface %p, value %p\n", iface, value ); + + *value = NULL; + if (!InternetGetConnectedState( flags, 0 )) return S_OK; + if (!(impl = calloc( 1, sizeof(*impl) ))) return E_OUTOFMEMORY;
This allocation does not appear to be released. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/6917#note_89110