| 777 | } |
| 778 | |
| 779 | BOOL CryptFileForward::SetEndOfFileInternal(LARGE_INTEGER& off) |
| 780 | { |
| 781 | #if 0 |
| 782 | // now handled by per-file (not per-handle) shared mutex |
| 783 | // below is the old comment |
| 784 | |
| 785 | // the calls to set the file pointer and then the end of file |
| 786 | // need to be made atomic (serialized) |
| 787 | lock_guard<mutex> lock(m_con->m_file_pointer_mutex); |
| 788 | #endif |
| 789 | |
| 790 | if (!SetFilePointerEx(m_handle, off, NULL, FILE_BEGIN)) |
| 791 | return FALSE; |
| 792 | |
| 793 | return ::SetEndOfFile(m_handle); |
| 794 | } |
| 795 | |
| 796 | CryptFileReverse::CryptFileReverse() |
| 797 | { |
nothing calls this directly
no outgoing calls
no test coverage detected