mirror of
https://github.com/reactos/reactos.git
synced 2024-08-19 18:02:55 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
* Move RtlRunOnce functions from kernel32_vista to rtl_vista and export them from ntdll_vista * Move condvar.c and srw.c from ntdll_vista to rtl_vista * Move ntdll_vista build script to a subfolder of ntdll The RtlRunOnce functions are taken from wine, completely unmodified. The code that was in kernel32_vista had change that used a global keyed_event handle, but was never initialized, so we were still passing NULL thus using the global ExpCritSecOutOfMemoryEvent.
26 lines
665 B
CMake
26 lines
665 B
CMake
|
|
spec2def(ntdll_vista.dll ntdll_vista.spec ADD_IMPORTLIB)
|
|
|
|
add_definitions(
|
|
-D__NTDLL__
|
|
-D_NTOSKRNL_
|
|
-DCRTDLL)
|
|
|
|
include_directories(
|
|
BEFORE include
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/subsys)
|
|
|
|
list(APPEND SOURCE
|
|
DllMain.c
|
|
${CMAKE_CURRENT_BINARY_DIR}/ntdll_vista.def)
|
|
|
|
add_library(ntdll_vista MODULE ${SOURCE})
|
|
set_module_type(ntdll_vista win32dll ENTRYPOINT DllMain 12)
|
|
target_link_libraries(ntdll_vista rtl_vista)
|
|
if(ARCH STREQUAL "arm")
|
|
target_link_libraries(ntdll_vista chkstk)
|
|
endif()
|
|
add_importlibs(ntdll_vista ntdll)
|
|
add_dependencies(ntdll_vista psdk)
|
|
add_cd_file(TARGET ntdll_vista DESTINATION reactos/system32 FOR all)
|