| 74 | } |
| 75 | |
| 76 | CString Registry::QueryStringValue(RegistryKey& key, PCWSTR name) { |
| 77 | ULONG len = 0; |
| 78 | key.QueryStringValue(name, nullptr, &len); |
| 79 | if (len == 0) |
| 80 | return L""; |
| 81 | |
| 82 | auto value = std::make_unique<WCHAR[]>(len); |
| 83 | key.QueryStringValue(name, value.get(), &len); |
| 84 | return value.get(); |
| 85 | } |
| 86 | |
| 87 | CString Registry::StdRegPathToRealPath(const CString& path) { |
| 88 | CString result(path); |
no outgoing calls
no test coverage detected