1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

Forgot that IsWow64Process would return false on a native 64-bit application

This commit is contained in:
Alexander "Ace" Olofsson 2012-03-01 01:03:31 +01:00
parent c796c81d00
commit b6915a6090

View file

@ -75,7 +75,7 @@ boost::filesystem::path WindowsPath::getInstallPath() const
BOOL f64 = FALSE;
LPCTSTR regkey;
if (IsWow64Process(GetCurrentProcess(), &f64) && f64)
if ((IsWow64Process(GetCurrentProcess(), &f64) && f64) || sizeof(void*) == 8)
{
regkey = "SOFTWARE\\Wow6432Node\\Bethesda Softworks\\Morrowind";
}