Skip to content

Commit

Permalink
Fix bug in FileService GetDirectoryContent
Browse files Browse the repository at this point in the history
Implementation windows
- nettoyage uniquement si, pointeur hFinf non NUL
- correction a reporter en V11
  • Loading branch information
marcboulle committed Jan 17, 2024
1 parent 5deb096 commit 70615bb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Norm/base/FileService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 70615bb

Please sign in to comment.