picout fix

This commit is contained in:
2022-04-13 22:46:53 +03:00
parent 2ab2614ab4
commit c7e67b309e
3 changed files with 6 additions and 5 deletions

View File

@@ -396,9 +396,7 @@ bool PIIODevice::close() {
}
int PIIODevice::write(PIByteArray data) {
if (isOpened())
return writeDevice(data.data(), data.size_s());
return -1;
return writeDevice(data.data(), data.size_s());
}