| 184 | } |
| 185 | |
| 186 | bool MountPointManager::find(const WCHAR * mountpoint, wstring & mpstr) const |
| 187 | { |
| 188 | auto it = m_tdatas.find(mountpoint); |
| 189 | if (it != m_tdatas.end()) { |
| 190 | mpstr = it->first; |
| 191 | return true; |
| 192 | } |
| 193 | |
| 194 | for (auto it = m_tdatas.begin(); it != m_tdatas.end(); ++it) { |
| 195 | if (!lstrcmpi(it->first.c_str(), mountpoint)) { |
| 196 | mpstr = it->first; |
| 197 | return true; |
| 198 | } |
| 199 | } |
| 200 | return false; |
| 201 | } |
| 202 | |
| 203 | bool MountPointManager::get_path(const WCHAR *mountpoint, wstring& path) const |
| 204 | { |
no outgoing calls
no test coverage detected