[*] ...no
This commit is contained in:
parent
729c9f8508
commit
a8696c0b7e
@ -236,7 +236,14 @@ namespace Aurora::IO::FS
|
|||||||
|
|
||||||
bool WinFileStream::Write(const Memory::MemoryViewStreamRead ¶meters)
|
bool WinFileStream::Write(const Memory::MemoryViewStreamRead ¶meters)
|
||||||
{
|
{
|
||||||
auto hHandle = this->GetWin32Handle();
|
auto optHandle = this->GetHandle()->GetOSWriteHandleSafe();
|
||||||
|
if (!optHandle)
|
||||||
|
{
|
||||||
|
SysPushErrorIOResourceRejected();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
auto hHandle = (HANDLE)optHandle.value();
|
||||||
HANDLE hEventHandle { INVALID_HANDLE_VALUE };
|
HANDLE hEventHandle { INVALID_HANDLE_VALUE };
|
||||||
|
|
||||||
if (hHandle == INVALID_HANDLE_VALUE)
|
if (hHandle == INVALID_HANDLE_VALUE)
|
||||||
|
Loading…
Reference in New Issue
Block a user