Accept success codes other than S_OK in RoInitialize (#7979)

* Accept success codes other than S_OK in RoInitialize

* Use multithreaded apartment in raw WinML tests
This commit is contained in:
Tiago Koji Castro Shibata 2021-06-07 18:06:31 -07:00 committed by GitHub
parent eb354853d3
commit fc331cbd5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ auto CreateModelAsBuffer(const wchar_t* model_path)
}
static void RawApiTestsApiTestsClassSetup() {
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_SINGLETHREADED));
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_MULTITHREADED));
}
static void CreateModelFromFilePath() {

View file

@ -101,7 +101,7 @@ ml::learning_model_device CreateDevice(DeviceType deviceType)
}
static void RawApiTestsGpuApiTestsClassSetup() {
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_SINGLETHREADED));
WINML_EXPECT_HRESULT_SUCCEEDED(RoInitialize(RO_INIT_TYPE::RO_INIT_MULTITHREADED));
}
static void CreateDirectXDevice() {