fix: add missing file handle close

Related-To: NEO-8092
Signed-off-by: Fabian Zwolinski <fabian.zwolinski@intel.com>
This commit is contained in:
Fabian Zwolinski
2023-09-21 15:56:17 +00:00
committed by Compute-Runtime-Automation
parent 1142c9b061
commit f931c25307
3 changed files with 21 additions and 0 deletions

View File

@@ -85,6 +85,8 @@ size_t findNextFileACalled = 0u;
extern const size_t findNextFileAFileDataCount = 4;
WIN32_FIND_DATAA findNextFileAFileData[findNextFileAFileDataCount];
size_t findCloseCalled = 0u;
size_t getFileAttributesCalled = 0u;
DWORD getFileAttributesResult = TRUE;
@@ -250,6 +252,7 @@ BOOL findNextFileA(HANDLE hFindFile, LPWIN32_FIND_DATAA lpFindFileData) {
}
BOOL findClose(HANDLE hFindFile) {
findCloseCalled++;
return TRUE;
}