diff options
author | David Cole <david.cole@kitware.com> | 2011-01-07 12:31:56 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2011-01-07 12:40:07 (GMT) |
commit | 4b05a213028b09660d4651b46a1cc3f102c8ad97 (patch) | |
tree | 44aa9ceddea74724170d8cacd2bc97d955353df4 /Tests/CPackComponents | |
parent | fd4875b4c030e1ac4f2cb08164e581cecde5af1e (diff) | |
download | CMake-4b05a213028b09660d4651b46a1cc3f102c8ad97.zip CMake-4b05a213028b09660d4651b46a1cc3f102c8ad97.tar.gz CMake-4b05a213028b09660d4651b46a1cc3f102c8ad97.tar.bz2 |
Fix WOW64 registry mode on Windows 2000 (#10759)
CMake fails to find any registry paths on Windows 2000: according to regmon
it fails with an access denied error. I double checked all the access rights
and they are fine. After checking the access modes on MSDN I found that it
says KEY_WOW64_32KEY / KEY_WOW64_64KEY are not supported on Windows 2000.
CMake does not check if the current system supports Wow64 before applying
these flags.
This commit adds a check for IsWow64Process in kernel32.dll before adding
these flags.
Author: Axel Gembe <ago@bastart.eu.org>
Signed-off-by: Axel Gembe <ago@bastart.eu.org>
Diffstat (limited to 'Tests/CPackComponents')
0 files changed, 0 insertions, 0 deletions