MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / Close

Method Close

source/DiskImageHelper.cpp:2020–2032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2018//-------------------------------------
2019
2020void CImageHelperBase::Close(ImageInfo* pImageInfo)
2021{
2022 if (pImageInfo->hFile != INVALID_HANDLE_VALUE)
2023 {
2024 CloseHandle(pImageInfo->hFile);
2025 pImageInfo->hFile = INVALID_HANDLE_VALUE;
2026 }
2027
2028 pImageInfo->szFilename.clear();
2029
2030 delete [] pImageInfo->pImageBuffer;
2031 pImageInfo->pImageBuffer = NULL;
2032}
2033
2034//-------------------------------------
2035

Callers 1

ImageCloseFunction · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected