summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-03-05 13:47:45 +0100
committerChristophe Fergeau <cfergeau@redhat.com>2012-03-05 14:32:53 +0100
commit0a91bd1dbf10f3b07832d3519cb68adcdefed776 (patch)
tree5da3f6df267b0cad8a6c7cd7c4b1021e041d7c32
parent6cd20af5b3df49882f4cddcc8d5f91e400587a37 (diff)
Use ::SendBool for smartcard control
-rw-r--r--SpiceXPI/src/plugin/plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/SpiceXPI/src/plugin/plugin.cpp b/SpiceXPI/src/plugin/plugin.cpp
index cfa70cd..220ac39 100644
--- a/SpiceXPI/src/plugin/plugin.cpp
+++ b/SpiceXPI/src/plugin/plugin.cpp
@@ -647,7 +647,7 @@ void nsPluginInstance::Connect()
SendValue(CONTROLLER_FULL_SCREEN,
(m_fullscreen == PR_TRUE ? CONTROLLER_SET_FULL_SCREEN : 0) |
(m_admin_console == PR_FALSE ? CONTROLLER_AUTO_DISPLAY_RES : 0));
- SendValue(CONTROLLER_ENABLE_SMARTCARD, m_smartcard == PR_TRUE ? 1 : 0);
+ SendBool(CONTROLLER_ENABLE_SMARTCARD, m_smartcard);
SendStr(CONTROLLER_PASSWORD, m_password.c_str());
SendStr(CONTROLLER_TLS_CIPHERS, m_cipher_suite.c_str());
SendStr(CONTROLLER_SET_TITLE, m_title.c_str());