Merge from 2.3

master
Pierre Joye 2021-09-11 23:38:22 +07:00
parent efbf48317f
commit efffd21c36
2 changed files with 4 additions and 3 deletions

View File

@ -1,3 +1,4 @@
leak:libheif.so.1
leak:libde265.so.0
leak:libx265.so.179
leak:libfontconfig.so.1

View File

@ -88,13 +88,13 @@ int gdTestIsDir(char *path) {
return 0;
}
if (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
return 0;
} else {
return 1;
} else {
return 0;
}
#else
struct stat st;
if (lstat(path, &st) != 0)
if (lstat(path, &st) == 0)
if (S_ISDIR(st.st_mode))
return 1;