I'm sure noone else could have discovered this issue before. cmake was the key! ;-)Author: sir_richard Date: Sat Aug 7 05:02:58 2010 New Revision: 48475 URL: http://svn.reactos.org/svn/reactos?rev=48475&view=rev Log: [KERNEL32]: While working on the CMAKE branch, Amine and myself discovered a rather serious issue in kernel32 (and perhaps other libraries as well).
That's an undocumented rbuild feature, called api-out-of-thin-air. To understand how it works, you must study quantum chaos theory.Unlike rbuild, CMake does not allow you to export non-existant DLL functions (try it: add "poopyhead" in kernel32's exports under RBuild, and will it export "poopyhead", God knowing what that will actually link to).
I see, with cmake, this feature works on ntdll as well ;-pthere already exists a function for: RtlSetLastNtStatusFromWin32Error.