MCPcopy Create free account
hub / github.com/diasurgical/devilution / SFileCloseFile

Function SFileCloseFile

3rdParty/StormLib/src/SFileOpenFileEx.cpp:383–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

381// bool STORMAPI SFileCloseFile(HANDLE hFile);
382
383bool STORMAPI SFileCloseFile(HANDLE hFile)
384{
385 TMPQFile * hf = (TMPQFile *)hFile;
386
387 if(!IsValidFileHandle(hFile))
388 {
389 SetLastError(ERROR_INVALID_HANDLE);
390 return false;
391 }
392
393 // Free the structure
394 FreeFileHandle(hf);
395 return true;
396}

Callers 11

music_stopFunction · 0.85
SBmpLoadImageFunction · 0.85
SVidPlayEndFunction · 0.85
WCloseFileFunction · 0.85
sfx_stopFunction · 0.85
init_archivesFunction · 0.85
pfile_read_heroFunction · 0.85
pfile_readFunction · 0.85
SFileExtractFileFunction · 0.85
DoMPQSearch_FileEntryFunction · 0.85

Calls 3

IsValidFileHandleFunction · 0.85
SetLastErrorFunction · 0.85
FreeFileHandleFunction · 0.85

Tested by

no test coverage detected