twinapi.appcore: Return success from AdvertisingManager_get_AdvertisingId stub.
This commit is contained in:
parent
abc0c3c129
commit
e04c976fa9
2 changed files with 5 additions and 1 deletions
|
@ -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 =
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue