Files
ports/graphics/freeimage/files/patch-Source_FreeImage_PluginPSD.cpp
T
Tobias Kortkamp 12b47f0d2d graphics/freeimage: Amend patch introduced in r479150
While there is an additional check on 'handle' in psdParser::Save()
later it should be done earlier as intended and not just commented
out because of Clang/libc++ regressions.
2018-09-07 17:14:41 +00:00

17 lines
577 B
C++

Source/FreeImage/PluginPSD.cpp:130:10: error: cannot initialize return object of type
'BOOL' (aka 'int') with an rvalue of type 'nullptr_t'
return NULL;
^~~~
--- Source/FreeImage/PluginPSD.cpp.orig 2018-09-04 20:32:27 UTC
+++ Source/FreeImage/PluginPSD.cpp
@@ -127,7 +127,7 @@ Load(FreeImageIO *io, fi_handle handle, int page, int
static BOOL DLL_CALLCONV
Save(FreeImageIO *io, FIBITMAP *dib, fi_handle handle, int page, int flags, void *data) {
if(!handle) {
- return NULL;
+ return FALSE;
}
try {
psdParser parser;