MCPcopy Create free account
hub / github.com/Kenix3/libultraship / SFileCloseFile

Function SFileCloseFile

extern/StormLib/src/SFileOpenFileEx.cpp:405–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403// bool WINAPI SFileCloseFile(HANDLE hFile);
404
405bool WINAPI SFileCloseFile(HANDLE hFile)
406{
407 TMPQFile * hf = (TMPQFile *)hFile;
408
409 if(!IsValidFileHandle(hFile))
410 {
411 SetLastError(ERROR_INVALID_HANDLE);
412 return false;
413 }
414
415 // Free the structure
416 FreeFileHandle(hf);
417 return true;
418}

Callers 15

GetFilePatchCountFunction · 0.85
CheckIfFileIsPresentFunction · 0.85
LoadMpqFileFunction · 0.85
AddFileToMpqFunction · 0.85
TestOnLocalListFileFunction · 0.85
TestArchive_SetPosFunction · 0.85
TestArchive_PatchedFunction · 0.85
VerifyFileFunction · 0.85
IsMatchingPatchFileFunction · 0.85

Calls 3

IsValidFileHandleFunction · 0.85
SetLastErrorFunction · 0.85
FreeFileHandleFunction · 0.85

Tested by 10

GetFilePatchCountFunction · 0.68
CheckIfFileIsPresentFunction · 0.68
LoadMpqFileFunction · 0.68
AddFileToMpqFunction · 0.68
TestOnLocalListFileFunction · 0.68
TestArchive_SetPosFunction · 0.68
TestArchive_PatchedFunction · 0.68