summaryrefslogtreecommitdiffhomepage
path: root/proto-simconnect
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-03-16 05:36:56 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-03-16 05:36:56 +0100
commit89779de6b084a54711cf360d7fa145f433795623 (patch)
tree53a17d1bb6876d9cd2cb2265b457370280ce88d3 /proto-simconnect
parent7fa774241545756035bdf3de148865797fc1e1a5 (diff)
proto/simconnect: fix MSVC activation context
Issue: #760
Diffstat (limited to 'proto-simconnect')
-rw-r--r--proto-simconnect/ftnoir_protocol_sc.cpp7
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);