| 134 | } |
| 135 | |
| 136 | void ReadPipe(HANDLE pipe, void* dst, DWORD size) |
| 137 | { |
| 138 | DWORD readBytes; |
| 139 | THROW_LAST_ERROR_IF(ReadFile(pipe, dst, size, &readBytes, nullptr) == FALSE); |
| 140 | if (readBytes != size) |
| 141 | throw std::runtime_error("can't read enough data"); |
| 142 | } |
| 143 | |
| 144 | std::wstring AnsiStringToWideString(const char* str) |
| 145 | { |
no outgoing calls
no test coverage detected