1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-03-03 13:39:40 +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";
}