diff --git a/src/Norm/base/FileService.cpp b/src/Norm/base/FileService.cpp index 595b67d9b..78f2673b0 100644 --- a/src/Norm/base/FileService.cpp +++ b/src/Norm/base/FileService.cpp @@ -553,7 +553,8 @@ boolean FileService::GetDirectoryContent(const ALString& sPathName, StringVector } // Nettoyage - p_FindClose(hFind); + if (hFind != NULL) + p_FindClose(hFind); p_DeleteFileData(pFileData); p_SetApplicationLocale(); return bOk;