summaryrefslogtreecommitdiffhomepage
path: root/compat/win32-com.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-14 12:33:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-14 12:33:59 +0200
commitaec9206cec43feb5fa6dd54bee81c1dd185bf2e6 (patch)
tree888faa5b6086247532858f30557a69f443c12e07 /compat/win32-com.cpp
parent77ce6e4f519cb65591a7c76ab201ad85fbb2965c (diff)
compat/com: no need to initialize OLE at all times
Diffstat (limited to 'compat/win32-com.cpp')
-rw-r--r--compat/win32-com.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/compat/win32-com.cpp b/compat/win32-com.cpp
index dd7c24a8..a037b3ba 100644
--- a/compat/win32-com.cpp
+++ b/compat/win32-com.cpp
@@ -43,6 +43,7 @@ bool OPENTRACK_COMPAT_EXPORT init_com_threading(com_type t)
return false;
}
+#if 0
if (t == com_apartment)
{
ret = OleInitialize(nullptr);
@@ -52,6 +53,7 @@ bool OPENTRACK_COMPAT_EXPORT init_com_threading(com_type t)
return false;
}
+#endif
initialized = t;