diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-16 05:36:56 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-03-16 05:36:56 +0100 |
commit | 89779de6b084a54711cf360d7fa145f433795623 (patch) | |
tree | 53a17d1bb6876d9cd2cb2265b457370280ce88d3 | |
parent | 7fa774241545756035bdf3de148865797fc1e1a5 (diff) |
proto/simconnect: fix MSVC activation context
Issue: #760
-rw-r--r-- | proto-simconnect/ftnoir_protocol_sc.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/proto-simconnect/ftnoir_protocol_sc.cpp b/proto-simconnect/ftnoir_protocol_sc.cpp index f2a9dd14..6a695cb1 100644 --- a/proto-simconnect/ftnoir_protocol_sc.cpp +++ b/proto-simconnect/ftnoir_protocol_sc.cpp @@ -121,13 +121,8 @@ public: actx.cbSize = sizeof(actx); actx.lpResourceName = MAKEINTRESOURCEA(resid); actx.dwFlags = ACTCTX_FLAG_RESOURCE_NAME_VALID; -#ifdef _MSC_VER -# define PREFIX "" -#else -# define PREFIX "lib" -#endif static const QString prefix = OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH; - QString path = prefix + PREFIX "opentrack-proto-simconnect.dll"; + QString path = prefix + "lib" "opentrack-proto-simconnect.dll"; QByteArray name = QFile::encodeName(path); actx.lpSource = name.constData(); hactctx = CreateActCtxA(&actx); |