devtools: fix popen in non-windows environment

This commit is contained in:
Vinicius Rangel 2024-12-26 02:21:55 -03:00
parent 5f9abd1db4
commit 85ba9e5334
No known key found for this signature in database
GPG Key ID: A5B154D904B761D9

View File

@ -117,7 +117,7 @@ static bool IsDrawCall(AmdGpu::PM4ItOpcode opcode) {
inline std::optional<std::string> exec_cli(const char* cli) { inline std::optional<std::string> exec_cli(const char* cli) {
std::array<char, 64> buffer{}; std::array<char, 64> buffer{};
std::string output; std::string output;
const auto f = popen(cli, "rt"); const auto f = popen(cli, "r");
if (!f) { if (!f) {
pclose(f); pclose(f);
return {}; return {};