Fixed the 32-bit detecting 64-bit improvement.

This commit is contained in:
Jason Hood 2013-09-21 01:11:53 +10:00
parent 0394977368
commit 5e7590e3a9
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
don't write the reset sequence if output is redirected.
*/
#define PDATE L"20 September, 2013"
#define PDATE L"21 September, 2013"
#include "ansicon.h"
#include "version.h"

View File

@ -84,7 +84,7 @@ int ProcessType( LPPROCESS_INFORMATION pinfo, BOOL* gui )
}
}
}
#ifdef _WIN32
#ifndef _WIN64
// If a 32-bit process loads a 64-bit one, we may miss the base
// address. If the pointer overflows, assume 64-bit.
if (((DWORD)ptr >> 12) + ((DWORD)minfo.RegionSize >> 12) > 0x80000)