forked from teamnwah/openmw-tes3coop
Forgot that IsWow64Process would return false on a native 64-bit application
This commit is contained in:
parent
c796c81d00
commit
b6915a6090
1 changed files with 1 additions and 1 deletions
|
@ -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";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue