diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-06-05 12:32:07 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-06-05 12:32:07 +0100 |
| commit | d699b3514c2c9d9fb32b19f487ad648e6fadb814 (patch) | |
| tree | 742941493afffeb95e402c62a3cfec016d1f903c /src/lib/cross.cc | |
| parent | 58cd57db37f1460a899aaf92b8c7e7564f55e50d (diff) | |
Try to warn if we're running the 32-bit version on 64-bit windows (WoW64) (#1569).
Diffstat (limited to 'src/lib/cross.cc')
| -rw-r--r-- | src/lib/cross.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/cross.cc b/src/lib/cross.cc index 171bf2c81..a7fb298cb 100644 --- a/src/lib/cross.cc +++ b/src/lib/cross.cc @@ -501,3 +501,16 @@ command_and_read (string cmd) return ""; } + +/** @return true if this process is a 32-bit one running on a 64-bit-capable OS */ +bool +running_32_on_64 () +{ +#ifdef DCPOMATIC_WINDOWS + BOOL p; + IsWow64Process (GetCurrentProcess(), &p); + return p; +#endif + /* XXX: assuming nobody does this on Linux / OS X */ + return false; +} |
