| 83 | } |
| 84 | |
| 85 | shared_ptr<CryptOpenFile> CryptOpenFiles::GetOpenFile(LPCWSTR path) |
| 86 | { |
| 87 | wstring ucpath; |
| 88 | |
| 89 | if (!touppercase(path, ucpath)) { |
| 90 | return nullptr; |
| 91 | } |
| 92 | |
| 93 | lock_guard<mutex> lock(m_mutex); |
| 94 | |
| 95 | auto it = m_openfiles.find(ucpath); |
| 96 | |
| 97 | if (it == m_openfiles.end()) { |
| 98 | return nullptr; |
| 99 | } |
| 100 | |
| 101 | return it->second; |
| 102 | } |
| 103 | |
| 104 | bool CryptOpenFiles::Rename(LPCWSTR from, LPCWSTR to) |
| 105 | { |
no test coverage detected