Windows: on 64-bit Windows, more System favorite service from SysWoW64 to System32 since now all binaries are native 64-bit on 64-bit machines.

This commit is contained in:
Mounir IDRASSI committed 2015-07-13 23:35:23 +02:00
1 parent 103018b367
commit 7d6cd0c92d
6 files changed
+94 -37

No files matched your search

+2 -2
View File
@@ -8264,11 +8264,11 @@ char *GetProgramConfigPath (char *fileName)
}
std::string GetServiceConfigPath (const char *fileName)
std::string GetServiceConfigPath (const char *fileName, bool useLegacy)
{
char sysPath[TC_MAX_PATH];
if (Is64BitOs())
if (Is64BitOs() && useLegacy)
{
typedef UINT (WINAPI *GetSystemWow64Directory_t) (LPTSTR lpBuffer, UINT uSize);