diff --git a/Source/IO/FS/FileStream.NT.cpp b/Source/IO/FS/FileStream.NT.cpp index 93aa1d0a..4392118b 100644 --- a/Source/IO/FS/FileStream.NT.cpp +++ b/Source/IO/FS/FileStream.NT.cpp @@ -362,11 +362,7 @@ namespace Aurora::IO::FS if (!written) { - SysPushErrorIO(); - parameters.outVariable = uOffset; - - AuWin32CloseHandle(hEventHandle); - return true; + break; } uOffset += written; @@ -374,12 +370,6 @@ namespace Aurora::IO::FS } AuWin32CloseHandle(hEventHandle); - - if (!uOffset) - { - return false; - } - parameters.outVariable = uOffset; return true; } diff --git a/Source/IO/FS/FileStream.Unix.cpp b/Source/IO/FS/FileStream.Unix.cpp index a11d2cd9..940e4207 100755 --- a/Source/IO/FS/FileStream.Unix.cpp +++ b/Source/IO/FS/FileStream.Unix.cpp @@ -245,7 +245,6 @@ namespace Aurora::IO::FS if (!written) { - SysPushErrorNested("File Error: {}", path_); break; } @@ -253,11 +252,6 @@ namespace Aurora::IO::FS length -= written; } - if (!offset) - { - return false; - } - parameters.outVariable = offset; return true; }