[REACTOS] Explicitly link against pseh & include pseh headers in a few places

This commit is contained in:
Jérôme Gardou 2021-04-22 17:28:52 +02:00 committed by Jérôme Gardou
parent 37bc01f42b
commit e470b58376
50 changed files with 103 additions and 23 deletions

View file

@ -20,10 +20,7 @@ list(APPEND SOURCE
${CMAKE_CURRENT_BINARY_DIR}/svcctl_s.c)
add_executable(services ${SOURCE} services.rc)
if(NOT MSVC)
target_link_libraries(services ${PSEH_LIB})
endif()
target_link_libraries(services ${PSEH_LIB})
set_module_type(services win32gui UNICODE)
add_importlibs(services userenv user32 advapi32 rpcrt4 msvcrt kernel32 ntdll)

View file

@ -15,6 +15,8 @@
#include <winnls.h>
#include <strsafe.h>
#include <pseh/pseh2.h>
#define NDEBUG
#include <debug.h>