| 77 | } |
| 78 | |
| 79 | std::wstring ConvertLPSTRToWString(LPSTR lpstr) { |
| 80 | int size_needed = MultiByteToWideChar(CP_ACP, 0, lpstr, -1, NULL, 0); |
| 81 | std::wstring wstr(size_needed, 0); |
| 82 | ::MultiByteToWideChar(CP_ACP, 0, lpstr, -1, &wstr[0], size_needed); |
| 83 | return wstr; |
| 84 | } |
| 85 | |
| 86 | bool PathHasSpace(const std::wstring &path) { return path.find(L' ') != std::wstring::npos; } |
| 87 |