Fix FS#9945 - Paste operation doesn't detect disk full (and possibly other errors).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20121 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
dfd32efc63
commit
73639e8e2e
1 changed files with 1 additions and 1 deletions
|
@ -735,7 +735,7 @@ static bool clipboard_pastefile(const char *src, const char *target, bool copy)
|
|||
while(bytesread > 0) {
|
||||
byteswritten = write(target_fd, buffer, bytesread);
|
||||
|
||||
if (byteswritten == -1) {
|
||||
if (byteswritten < 0) {
|
||||
result = false;
|
||||
size = 0;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue