From d531ffdad4cca632a7b48bf9980882644e4b3bef Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 12 Aug 2016 15:56:00 +0200 Subject: [PATCH] Print error codes if IsWow64Process fails --- renderdoc/os/win32/win32_process.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/renderdoc/os/win32/win32_process.cpp b/renderdoc/os/win32/win32_process.cpp index 8dde052c6..eeed7a73b 100644 --- a/renderdoc/os/win32/win32_process.cpp +++ b/renderdoc/os/win32/win32_process.cpp @@ -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; }