[*] Drop stupid write stream semantics

This commit is contained in:
Reece Wilson 2024-03-22 13:57:39 +00:00
parent c87ec4e4b6
commit 782d788531
2 changed files with 1 additions and 17 deletions

View File

@ -362,11 +362,7 @@ namespace Aurora::IO::FS
if (!written) if (!written)
{ {
SysPushErrorIO(); break;
parameters.outVariable = uOffset;
AuWin32CloseHandle(hEventHandle);
return true;
} }
uOffset += written; uOffset += written;
@ -374,12 +370,6 @@ namespace Aurora::IO::FS
} }
AuWin32CloseHandle(hEventHandle); AuWin32CloseHandle(hEventHandle);
if (!uOffset)
{
return false;
}
parameters.outVariable = uOffset; parameters.outVariable = uOffset;
return true; return true;
} }

View File

@ -245,7 +245,6 @@ namespace Aurora::IO::FS
if (!written) if (!written)
{ {
SysPushErrorNested("File Error: {}", path_);
break; break;
} }
@ -253,11 +252,6 @@ namespace Aurora::IO::FS
length -= written; length -= written;
} }
if (!offset)
{
return false;
}
parameters.outVariable = offset; parameters.outVariable = offset;
return true; return true;
} }