1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-25 12:43:30 +00:00

Added work-around for service-manager if %ProgramFiles(x86)% doesn't exist, to work around issue of Windows 7 erroneously returning IsWOW64

This commit is contained in:
Bryan Roe
2020-05-28 15:26:54 -07:00
parent 828cbf10b2
commit b8007f227b
2 changed files with 15 additions and 15 deletions

View File

@@ -562,7 +562,7 @@ function serviceManager()
// 64 bit Windows
if (this.GM.PointerSize == 4)
{
return process.env['ProgramFiles(x86)']; // 32 Bit App
return (process.env['ProgramFiles(x86)'] ? process.env['ProgramFiles(x86)'] : process.env['ProgramFiles']);
}
return process.env['ProgramFiles']; // 64 bit App
}