[*] 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)
{
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;
}

View File

@ -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;
}