mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-03 04:30:38 +00:00
Print error codes if IsWow64Process fails
This commit is contained in:
1 parent
c4310373fd
commit
d531ffdad4
1 file changed
+4
-2
@@ -417,7 +417,8 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap
|
||||
|
||||
if(!success)
|
||||
{
|
||||
RDCERR("Couldn't determine bitness of process");
|
||||
DWORD err = GetLastError();
|
||||
RDCERR("Couldn't determine bitness of process, err: %08x", err);
|
||||
CloseHandle(hProcess);
|
||||
return 0;
|
||||
}
|
||||
@@ -433,7 +434,8 @@ uint32_t Process::InjectIntoProcess(uint32_t pid, const char *logfile, const Cap
|
||||
|
||||
if(!success)
|
||||
{
|
||||
RDCERR("Couldn't determine bitness of self");
|
||||
DWORD err = GetLastError();
|
||||
RDCERR("Couldn't determine bitness of self, err: %08x", err);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user