mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1188457 - Fixed SapiService.cpp compilation on mingw. r=jimm
This commit is contained in:
parent
91faebe816
commit
e36a54bb2a
@ -132,6 +132,8 @@ SapiCallback::OnSpeechEvent(const SPEVENT& speechEvent)
|
|||||||
mTask->DispatchBoundary(NS_LITERAL_STRING("sentence"),
|
mTask->DispatchBoundary(NS_LITERAL_STRING("sentence"),
|
||||||
GetTickCount() - mStartingTime, mCurrentIndex);
|
GetTickCount() - mStartingTime, mCurrentIndex);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -180,7 +182,7 @@ SapiService::Init()
|
|||||||
|
|
||||||
if (Preferences::GetBool("media.webspeech.synth.test")) {
|
if (Preferences::GetBool("media.webspeech.synth.test")) {
|
||||||
// When enabled, we shouldn't add OS backend (Bug 1160844)
|
// When enabled, we shouldn't add OS backend (Bug 1160844)
|
||||||
return nullptr;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (FAILED(CoCreateInstance(CLSID_SpVoice, nullptr, CLSCTX_ALL, IID_ISpVoice,
|
if (FAILED(CoCreateInstance(CLSID_SpVoice, nullptr, CLSCTX_ALL, IID_ISpVoice,
|
||||||
|
@ -356,7 +356,8 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
|||||||
'wbemuuid',
|
'wbemuuid',
|
||||||
'wintrust',
|
'wintrust',
|
||||||
'wtsapi32',
|
'wtsapi32',
|
||||||
'locationapi'
|
'locationapi',
|
||||||
|
'sapi',
|
||||||
]
|
]
|
||||||
if CONFIG['ACCESSIBILITY']:
|
if CONFIG['ACCESSIBILITY']:
|
||||||
OS_LIBS += [
|
OS_LIBS += [
|
||||||
|
Loading…
Reference in New Issue
Block a user