win32/Com: remove the unused COINIT_MULTITHREADED constructor

This commit is contained in:
Max Kellermann 2021-03-08 14:02:05 +01:00
parent 6a75c48dba
commit f2c679cfec
1 changed files with 0 additions and 8 deletions

View File

@ -28,14 +28,6 @@
// https://docs.microsoft.com/en-us/windows/win32/api/_com/
class COM {
public:
COM() {
if (HRESULT result = CoInitializeEx(nullptr, COINIT_MULTITHREADED);
FAILED(result)) {
throw MakeHResultError(
result,
"Unable to initialize COM with COINIT_MULTITHREADED");
}
}
COM(bool) {
if (HRESULT result = CoInitializeEx(nullptr, COINIT_APARTMENTTHREADED);
FAILED(result)) {