| 475 | } |
| 476 | |
| 477 | HFile::HFile(const std::string& filename) : |
| 478 | m_handle(-1) |
| 479 | { |
| 480 | if (::_sopen_s(&m_handle, filename.c_str(), _O_RDWR | _O_CREAT, _SH_DENYNO, _S_IREAD | _S_IWRITE) != 0) |
| 481 | { |
| 482 | ThrowLastError("_sopen_s"); |
| 483 | } |
| 484 | } |
| 485 | |
| 486 | HFile::~HFile() |
| 487 | { |
nothing calls this directly
no test coverage detected