MantisBT - CMake
View Issue Details
0010759CMakeCMakepublic2010-05-26 03:502011-05-02 14:45
Axel Gembe 
David Cole 
highminoralways
closedfixed 
CMake-2-8 
CMake 2.8.4CMake 2.8.4 
0010759: Fix WOW64 registry mode on Windows 2000
CMake fails to find any registry paths on Windows 2000 and 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 patch adds a check for IsWow64Process in kernel32.dll before adding these
flags. Maybe this should be in a helper function, but I don't really know the
codebase well enough.
I tested the patch on Windows 2000, will test on Windows 7 soon.
2000, registry, win2k, wow64, wow64 win2k 2000 registry
patch win2k-reg-wow64.patch (1,569) 2010-05-26 03:50
https://public.kitware.com/Bug/file/3138/win2k-reg-wow64.patch
patch win2k-reg-wow64-signed-off.patch (1,617) 2010-05-26 03:52
https://public.kitware.com/Bug/file/3139/win2k-reg-wow64-signed-off.patch
Issue History
2010-05-26 03:50Axel GembeNew Issue
2010-05-26 03:50Axel GembeFile Added: win2k-reg-wow64.patch
2010-05-26 03:52Axel GembeFile Added: win2k-reg-wow64-signed-off.patch
2010-05-26 03:52Axel GembeNote Added: 0020819
2010-05-26 04:06Axel GembeTag Attached: wow64 win2k 2000 registry
2010-05-26 04:06Axel GembeTag Attached: 2000
2010-05-26 04:06Axel GembeTag Attached: registry
2010-05-26 04:06Axel GembeTag Attached: win2k
2010-05-26 04:06Axel GembeTag Attached: wow64
2010-05-26 09:39Bill HoffmanStatusnew => assigned
2010-05-26 09:39Bill HoffmanAssigned To => David Cole
2010-09-09 17:39David ColePrioritynormal => high
2010-11-10 21:09David ColeTarget Version => CMake 2.8.4
2011-01-07 07:47David ColeNote Added: 0024504
2011-01-07 07:47David ColeStatusassigned => resolved
2011-01-07 07:47David ColeFixed in Version => CMake 2.8.4
2011-01-07 07:47David ColeResolutionopen => fixed
2011-05-02 14:45David ColeNote Added: 0026321
2011-05-02 14:45David ColeStatusresolved => closed

Notes
(0020819)
Axel Gembe   
2010-05-26 03:52   
Forgot the Signed-off-by.
(0024504)
David Cole   
2011-01-07 07:47   
Fixed in this git commit, just pushed to 'master' and 'next':
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4b05a213028b09660d4651b46a1cc3f102c8ad97 [^]

Should make it into 2.8.4...

Thanks, Axel Gembe, for the patch!
(0026321)
David Cole   
2011-05-02 14:45   
Closing resolved issues that have not been updated in more than 3 months.