| 2051 | } |
| 2052 | |
| 2053 | bool CMountPropertyPage::IsPathMounted(LPCWSTR path) |
| 2054 | { |
| 2055 | CListCtrl* pList = (CListCtrl*)GetDlgItem(IDC_DRIVE_LETTERS); |
| 2056 | |
| 2057 | if (!pList) |
| 2058 | return false; |
| 2059 | |
| 2060 | auto count = pList->GetItemCount(); |
| 2061 | |
| 2062 | for (int i = 0; i < count; ++i) { |
| 2063 | CString mounted_path = pList->GetItemText(i, PATH_INDEX); |
| 2064 | if (mounted_path == path) { |
| 2065 | return true; |
| 2066 | } |
| 2067 | } |
| 2068 | |
| 2069 | return false; |
| 2070 | } |
nothing calls this directly
no outgoing calls
no test coverage detected