Commit f2c679cf authored by Max Kellermann's avatar Max Kellermann

win32/Com: remove the unused COINIT_MULTITHREADED constructor

parent 6a75c48d
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment