aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/basicfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zencore/basicfile.cpp')
-rw-r--r--src/zencore/basicfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zencore/basicfile.cpp b/src/zencore/basicfile.cpp
index c4c41edca..6d1e1ee2b 100644
--- a/src/zencore/basicfile.cpp
+++ b/src/zencore/basicfile.cpp
@@ -132,7 +132,7 @@ BasicFile::Open(const std::filesystem::path& FileName, Mode InMode, std::error_c
if (FileHandle == INVALID_HANDLE_VALUE)
{
Ec = MakeErrorCodeFromLastError();
- if (!RetryCallback(Ec))
+ if (!RetryCallback || !RetryCallback(Ec))
{
break;
}
@@ -168,7 +168,7 @@ BasicFile::Open(const std::filesystem::path& FileName, Mode InMode, std::error_c
if (Fd < 0)
{
Ec = MakeErrorCodeFromLastError();
- if (!RetryCallback(Ec))
+ if (!RetryCallback || !RetryCallback(Ec))
{
break;
}