From 70615bb010fabf70f3dc62cd9d50a285b2498ba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Boull=C3=A9?= Date: Wed, 17 Jan 2024 10:58:37 +0100 Subject: [PATCH] Fix bug in FileService GetDirectoryContent Implementation windows - nettoyage uniquement si, pointeur hFinf non NUL - correction a reporter en V11 --- src/Norm/base/FileService.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;