sapi: Return a default token in ISpVoice::GetVoice

GetVoice returns a default voice when one is not active.  This stops
a crash on startup with Scrivener.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2020-10-15 20:39:55 +11:00 committed by Alexandre Julliard
parent aa1ef09fef
commit 6eaa2d2df2
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ static HRESULT WINAPI spvoice_GetVoice(ISpVoice *iface, ISpObjectToken **token)
{
FIXME("(%p, %p): stub.\n", iface, token);
return E_NOTIMPL;
return token_create(NULL, &IID_ISpObjectToken, (void **)token);
}
static HRESULT WINAPI spvoice_Speak(ISpVoice *iface, const WCHAR *contents, DWORD flags, ULONG *number)