[*] Ensure this never throws

This commit is contained in:
Reece Wilson 2023-08-22 09:45:32 +01:00
parent 76ac770674
commit cf363b9f5b

View File

@ -513,13 +513,13 @@ namespace Aurora::IO::FS
if (this->dwOsErrorCode == ERROR_BROKEN_PIPE ||
this->dwOsErrorCode == ERROR_HANDLE_EOF)
{
auto pipe = this->pNtIpcPipeImpl.lock();
auto pPipe = AuTryLockMemoryType(this->pNtIpcPipeImpl);
DispatchCb(0);
if (pipe)
if (pPipe)
{
pipe->OnEndOfReadStream();
pPipe->OnEndOfReadStream();
}
}
else