summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_sc
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-05 18:55:53 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-05 18:55:53 +0200
commit5eb808e133282ac0374a8ec2d9bd8451d983b009 (patch)
treee4a823687105c8ffb1b57d1ba1ca1530919a38af /ftnoir_protocol_sc
parente472979255f531d95e806a7d55a75ea3f222a88b (diff)
sc: oops, actctx always failed
Diffstat (limited to 'ftnoir_protocol_sc')
-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();
}