mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-03 20:09:40 +00:00
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;
|
BOOL f64 = FALSE;
|
||||||
LPCTSTR regkey;
|
LPCTSTR regkey;
|
||||||
if (IsWow64Process(GetCurrentProcess(), &f64) && f64)
|
if ((IsWow64Process(GetCurrentProcess(), &f64) && f64) || sizeof(void*) == 8)
|
||||||
{
|
{
|
||||||
regkey = "SOFTWARE\\Wow6432Node\\Bethesda Softworks\\Morrowind";
|
regkey = "SOFTWARE\\Wow6432Node\\Bethesda Softworks\\Morrowind";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue