mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 09:00:44 +00:00
Fix access mode for ::popen() call in ggp OS wrapper
popen's access mode was accidentally changed from string to enum used in FileIO::open() wrappers. This is a posix function and should keep using the string.
This commit is contained in:
committed by
Baldur Karlsson
parent
b6b255439a
commit
e4e2d781bb
@@ -181,7 +181,7 @@ private:
|
||||
uint64_t relative = addr - m_Modules[i].base + m_Modules[i].offset;
|
||||
rdcstr cmd = StringFormat::Fmt("addr2line -fCe \"%s\" 0x%llx", m_Modules[i].path, relative);
|
||||
|
||||
FILE *f = ::popen(cmd.c_str(), FileIO::ReadText);
|
||||
FILE *f = ::popen(cmd.c_str(), "r");
|
||||
|
||||
char result[2048] = {0};
|
||||
fread(result, 1, 2047, f);
|
||||
|
||||
Reference in New Issue
Block a user