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 *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");