From 4fdc2d9b3733f2b8d3edd4e10fdba0b7a525ae22 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 17 Sep 2014 08:07:09 +0200 Subject: initialize COM on _WIN32 as per Win32 API For API correctness only. It worked without issues since ever. --- facetracknoir/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/facetracknoir/main.cpp b/facetracknoir/main.cpp index 7462f8c2..694715d1 100644 --- a/facetracknoir/main.cpp +++ b/facetracknoir/main.cpp @@ -2,8 +2,16 @@ #include #include +#ifdef _WIN32 +# include +#endif + int main(int argc, char** argv) { +#ifdef _WIN32 + CoInitializeEx(NULL, COINIT_MULTITHREADED); +#endif + QApplication::setAttribute(Qt::AA_X11InitThreads, true); QApplication app(argc, argv); auto w = std::make_shared(); -- cgit v1.2.3