1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

twinapi.appcore: Return success from AdvertisingManager_get_AdvertisingId stub.

This commit is contained in:
Rémi Bernon 2023-11-23 12:33:10 +01:00 committed by Alexandre Julliard
parent abc0c3c129
commit e04c976fa9
2 changed files with 5 additions and 1 deletions

View file

@ -117,7 +117,7 @@ DEFINE_IINSPECTABLE( statics, IAdvertisingManagerStatics, struct factory, IActiv
static HRESULT WINAPI statics_get_AdvertisingId( IAdvertisingManagerStatics *iface, HSTRING *out )
{
FIXME( "iface %p, out %p stub!\n", iface, out );
return E_NOTIMPL;
return WindowsCreateString( NULL, 0, out );
}
static const struct IAdvertisingManagerStaticsVtbl statics_vtbl =

View file

@ -220,6 +220,10 @@ static void test_AdvertisingManager(void)
hr = IActivationFactory_QueryInterface( factory, &IID_IAdvertisingManagerStatics, (void **)&advertising_manager_statics );
ok( hr == S_OK, "got hr %#lx.\n", hr );
hr = IAdvertisingManagerStatics_get_AdvertisingId( advertising_manager_statics, &str );
ok( hr == S_OK, "got hr %#lx.\n", hr );
WindowsDeleteString( str );
ref = IAdvertisingManagerStatics_Release( advertising_manager_statics );
ok( ref == 2, "got ref %ld.\n", ref );
ref = IActivationFactory_Release( factory );