diff options
author | Mikkel Krautz <mikkel@krautz.dk> | 2015-02-07 20:24:07 +0300 |
---|---|---|
committer | Mikkel Krautz <mikkel@krautz.dk> | 2015-04-22 22:03:47 +0300 |
commit | 0e358bff809722e1072b27ad08b952c4da671b7a (patch) | |
tree | 9a8b20cbf2ba2afaa82487af2d21465f9d710884 /overlay | |
parent | 21a15190647b5f31f1c75f5097906be4825ccfb6 (diff) |
Check if the host supports 64-bit processes before attempting to start the x64 helper process.
This change adds a function, canRun64BitPrograms() to OverlayWinPrivate.
If the program is built for x64, the function unconditionally
returns true.
If the program is built for x86, the function uses a call to the
runtime-resolved kernel32!IsWow64Process to determine whether or
not the system is x64 capable.
This functionality is needed to avoid spawning the x64 helper in
case the system cannot support it. Doing so without care, like we
did previously, could be fatal because Mumble immediately restarts
the helper process if it terminates. This would presumably make the
host computer unusable.
Diffstat (limited to 'overlay')
0 files changed, 0 insertions, 0 deletions