Bug 1188457 - Fixed SapiService.cpp compilation on mingw. r=jimm

This commit is contained in:
Jacek Caban 2015-07-29 12:27:22 +02:00
parent c5a681c4f5
commit f31b0a1c0d
2 changed files with 5 additions and 2 deletions

View File

@ -132,6 +132,8 @@ SapiCallback::OnSpeechEvent(const SPEVENT& speechEvent)
mTask->DispatchBoundary(NS_LITERAL_STRING("sentence"),
GetTickCount() - mStartingTime, mCurrentIndex);
break;
default:
break;
}
}
@ -180,7 +182,7 @@ SapiService::Init()
if (Preferences::GetBool("media.webspeech.synth.test")) {
// When enabled, we shouldn't add OS backend (Bug 1160844)
return nullptr;
return false;
}
if (FAILED(CoCreateInstance(CLSID_SpVoice, nullptr, CLSCTX_ALL, IID_ISpVoice,

View File

@ -356,7 +356,8 @@ if CONFIG['OS_ARCH'] == 'WINNT':
'wbemuuid',
'wintrust',
'wtsapi32',
'locationapi'
'locationapi',
'sapi',
]
if CONFIG['ACCESSIBILITY']:
OS_LIBS += [