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
2015-07-13 23:35:23 +02:00
parent 103018b367
commit 7d6cd0c92d
6 changed files with 94 additions and 37 deletions
+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);