[*] ...no

This commit is contained in:
Reece Wilson 2023-09-13 00:02:26 +01:00
parent 729c9f8508
commit a8696c0b7e

View File

@ -236,7 +236,14 @@ namespace Aurora::IO::FS
bool WinFileStream::Write(const Memory::MemoryViewStreamRead &parameters)
{
auto hHandle = this->GetWin32Handle();
auto optHandle = this->GetHandle()->GetOSWriteHandleSafe();
if (!optHandle)
{
SysPushErrorIOResourceRejected();
return false;
}
auto hHandle = (HANDLE)optHandle.value();
HANDLE hEventHandle { INVALID_HANDLE_VALUE };
if (hHandle == INVALID_HANDLE_VALUE)