From: Mohamad Al-Jaf <mohamadaljaf(a)gmail.com> --- dlls/windows.media.mediacontrol/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/windows.media.mediacontrol/main.c b/dlls/windows.media.mediacontrol/main.c index e8c74ed6ed3..8d0df992768 100644 --- a/dlls/windows.media.mediacontrol/main.c +++ b/dlls/windows.media.mediacontrol/main.c @@ -24,6 +24,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(mediacontrol); +static EventRegistrationToken dummy_token = {.value = 0xdeadbeef}; + struct media_control_statics { IActivationFactory IActivationFactory_iface; @@ -800,13 +802,14 @@ static HRESULT WINAPI media_control_add_ButtonPressed( ISystemMediaTransportCont ITypedEventHandler_SystemMediaTransportControls_SystemMediaTransportControlsButtonPressedEventArgs *handler, EventRegistrationToken *token ) { FIXME( "iface %p, handler %p, token %p stub!\n", iface, handler, token ); - return E_NOTIMPL; + *token = dummy_token; + return S_OK; } static HRESULT WINAPI media_control_remove_ButtonPressed( ISystemMediaTransportControls *iface, EventRegistrationToken token ) { FIXME( "iface %p, token %#I64x stub!\n", iface, token.value ); - return E_NOTIMPL; + return S_OK; } static HRESULT WINAPI media_control_add_PropertyChanged( ISystemMediaTransportControls *iface, -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/8829