12b47f0d2d
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.
17 lines
577 B
C++
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;
|