Merge branch 'GoaLitiuM-exr_crash_fix'

This commit is contained in:
Wojtek Figat
2024-06-03 11:01:24 +02:00

View File

@@ -306,7 +306,7 @@ HRESULT LoadFromEXRFile(const StringView& path, DirectX::ScratchImage& image)
LOG_STR(Warning, String(err)); LOG_STR(Warning, String(err));
FreeEXRErrorMessage(err); FreeEXRErrorMessage(err);
} }
return S_FALSE; return E_FAIL;
} }
// Setup image // Setup image
@@ -326,7 +326,7 @@ HRESULT LoadFromEXRFile(const StringView& path, DirectX::ScratchImage& image)
return result; return result;
#else #else
LOG(Warning, "EXR format is not supported."); LOG(Warning, "EXR format is not supported.");
return S_FALSE; return E_FAIL;
#endif #endif
} }