From b6915a609095033fd622eec946d5a4106825103f Mon Sep 17 00:00:00 2001 From: "Alexander \"Ace\" Olofsson" Date: Thu, 1 Mar 2012 01:03:31 +0100 Subject: [PATCH] Forgot that IsWow64Process would return false on a native 64-bit application --- components/files/windowspath.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/files/windowspath.cpp b/components/files/windowspath.cpp index cf73b3728..dfa8f20cc 100644 --- a/components/files/windowspath.cpp +++ b/components/files/windowspath.cpp @@ -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"; }