| 82 | } |
| 83 | return escaped; |
| 84 | } |
| 85 | |
| 86 | std::string getExecutablePath() |
| 87 | { |
| 88 | HMODULE hModule = GetModuleHandleW(NULL); |
| 89 | WCHAR pathBuffer[MAX_PATH]; |
| 90 | GetModuleFileNameW(hModule, pathBuffer, MAX_PATH); |
| 91 | char ch[260]; |
| 92 | char DefChar = ' '; |
| 93 | WideCharToMultiByte(CP_ACP, 0, pathBuffer, -1, ch, 260, &DefChar, NULL); |
| 94 | return std::string(ch); |
| 95 | } |
| 96 |
no outgoing calls
no test coverage detected