summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp')
-rw-r--r--ftnoir_protocol_sc/ftnoir_protocol_sc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
index 762afbfa..9cb15752 100644
--- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
+++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp
@@ -76,7 +76,7 @@ void FTNoIR_Protocol::pose( const double *headpose ) {
class ActivationContext {
public:
- ActivationContext(const int resid) :ok (false) {
+ ActivationContext(const int resid) : ok(false) {
hactctx = INVALID_HANDLE_VALUE;
actctx_cookie = 0;
ACTCTXA actx = {0};
@@ -99,6 +99,8 @@ public:
ReleaseActCtx(hactctx);
hactctx = INVALID_HANDLE_VALUE;
}
+ else
+ ok = true;
} else {
qDebug() << "SC: can't create win32 activation context" << GetLastError();
}