summaryrefslogtreecommitdiffstats
path: root/tcutils
diff options
context:
space:
mode:
authorspeidy <speidy@gmail.com>2017-09-07 01:02:47 +0300
committermetalefty <meta@vmeta.jp>2017-09-13 11:18:41 +0900
commit36eda1bcbbdcf534c36cf016bbf2c4716ca0643c (patch)
tree9608c4f86d59fb250447496553a2cbe67c0ab92e /tcutils
parentfad2c57cd6e2f45870ca7bbb6879cbe86ad85cbf (diff)
downloadxrdp-proprietary-36eda1bcbbdcf534c36cf016bbf2c4716ca0643c.tar.gz
xrdp-proprietary-36eda1bcbbdcf534c36cf016bbf2c4716ca0643c.zip
tcutils: fix WTSVirtualChannelWrite return codes check according to API change
Diffstat (limited to 'tcutils')
-rw-r--r--tcutils/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcutils/utils.cpp b/tcutils/utils.cpp
index 1b8548c7..34ca5614 100644
--- a/tcutils/utils.cpp
+++ b/tcutils/utils.cpp
@@ -37,7 +37,7 @@ int Utils::getMountList(void *wtsChannel, QList<QListWidgetItem *> *itemList)
/* send command */
rv = WTSVirtualChannelWrite(wtsChannel, s.data, bytesToSend, &bytesWritten);
- if (rv)
+ if (rv == 0)
{
QMessageBox::information(NULL, "Get device list", "\nError sending "
"command to client");
@@ -126,7 +126,7 @@ int Utils::unmountDevice(void *wtsChannel, QString device, QStatusBar *statusBar
/* send command */
rv = WTSVirtualChannelWrite(wtsChannel, s.data, bytesToSend, &bytesWritten);
- if (rv)
+ if (rv == 0)
{
QMessageBox::information(NULL, "Unmount device", "\nError sending "
"command to client");