sir_richard@svn.reactos.org wrote:
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).
I'm sure noone else could have discovered this issue before. cmake was the key! ;-)
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).
That's an undocumented rbuild feature, called api-out-of-thin-air. To understand how it works, you must study quantum chaos theory.
there already exists a function for: *RtlSetLastNtStatusFromWin32Error*.
I see, with cmake, this feature works on ntdll as well ;-p
Regards, Timo
PS: build is broken.