From 3ff5d8a74e97d0c13e85132b43a1665fd13eb8ff Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Sat, 29 Jul 2023 10:13:25 +0100 Subject: [PATCH] [*] NT FSStream: Added more push debug errors --- Source/IO/FS/Async.NT.cpp | 1 + Source/IO/FS/FileStream.NT.cpp | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Source/IO/FS/Async.NT.cpp b/Source/IO/FS/Async.NT.cpp index 4e23d69d..6b0c3231 100644 --- a/Source/IO/FS/Async.NT.cpp +++ b/Source/IO/FS/Async.NT.cpp @@ -597,6 +597,7 @@ namespace Aurora::IO::FS if (!pHandle->InitFromPath(createhandle)) { + SysPushErrorNested(); return nullptr; } diff --git a/Source/IO/FS/FileStream.NT.cpp b/Source/IO/FS/FileStream.NT.cpp index 36962c2c..2786f166 100644 --- a/Source/IO/FS/FileStream.NT.cpp +++ b/Source/IO/FS/FileStream.NT.cpp @@ -352,6 +352,7 @@ namespace Aurora::IO::FS auto pStream = AuMakeShared(); if (!pStream) { + SysPushErrorMemory(); return nullptr; } @@ -382,12 +383,14 @@ namespace Aurora::IO::FS if (!pHandle->InitFromPath(createhandle)) { + SysPushErrorNested(); return nullptr; } auto pStream = _new WinFileStream(); if (!pStream) { + SysPushErrorMemory(); return nullptr; }