Fix return value of is_crypt_pressed
authorAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 08:24:34 +0000 (10:24 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Tue, 24 Jul 2018 08:24:34 +0000 (10:24 +0200)
* src/ribbon-callbacks.cpp (get_crypt_pressed): Fix return
value.

src/ribbon-callbacks.cpp

index d2310e0..fa10c8c 100644 (file)
@@ -327,7 +327,7 @@ HRESULT get_crypt_pressed (LPDISPATCH ctrl, int flags, VARIANT *result,
 
   value = (get_gpgol_draft_info_flags (message) & flags) == flags;
 
-  *(result->pboolVal) = value ? var_true: var_false;
+  result->pboolVal = value ? &var_true: &var_false;
 
 done:
   gpgol_release (context);