Alistair Leslie-Hughes : sapi: Return a default token in ISpVoice::GetVoice
Alexandre Julliard
julliard at winehq.org
Thu Oct 15 15:41:10 CDT 2020
Module: wine
Branch: master
Commit: 6eaa2d2df2a17a8b24d46e1224abd9df5b07d9b4
URL: https://source.winehq.org/git/wine.git/?a=commit;h=6eaa2d2df2a17a8b24d46e1224abd9df5b07d9b4
Author: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Date: Thu Oct 15 20:39:55 2020 +1100
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 at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/sapi/tts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/sapi/tts.c b/dlls/sapi/tts.c
index 584c3d56b70..77e54e079ac 100644
--- a/dlls/sapi/tts.c
+++ b/dlls/sapi/tts.c
@@ -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)
More information about the wine-cvs
mailing list