Commit e04c976f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

twinapi.appcore: Return success from AdvertisingManager_get_AdvertisingId stub.

parent abc0c3c1
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment