[RunTmChk]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 18 Oct 2014 21:22:52 +0000 (21:22 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 18 Oct 2014 21:22:52 +0000 (21:22 +0000)
commit400a2c65cf78ce95c30d33146adaa219c608b32d
tree81edf3996d544e7501991211ef92f05904cf5ce9
parent91dd4cbea0393c56efe4baecb3ef2a07389d0000
[RunTmChk]
- Implement _RTC_GetErrDesc, _RTC_SetErrorFuncW, add stubs for _RTC_NumErrors, _RTC_SetErrorType, _RTC_SetErrorFunc
- Implement _RTC_DefaultErrorFuncW which will be used, when no other error func was set
- Implement _RTC_InitBase, which will be called from _RTC_Initialize, and which in turn calls either _CRT_RTC_INITW, if CRT was linked, or a local _CRT_RTC_INITW0, which in turn will return the error function to use. This allows us to use a custom error function for all modules that link to (MSV)CRT. Only user32 does not really fit into here, since it uses the same startup code but does not link to MSVCRT.

[CRT]
- Call _RTC_Initialize from __main before initializing the global constructors, but fall back to a dummy _RTC_NoInitialize(), when RunTmChk.lib was not linked. Now we properly initialize both our own as well as MS RunTmChk lib.

svn path=/trunk/; revision=64816
reactos/lib/sdk/crt/startup/mscmain.c
reactos/lib/sdk/runtmchk/CMakeLists.txt
reactos/lib/sdk/runtmchk/rtcapi.c
reactos/lib/sdk/runtmchk/rtcuserapi.c [new file with mode: 0644]