From e5db85276e31e3b9145755b9129a5b727701817e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Thu, 22 Feb 2024 13:37:36 +0100 Subject: [PATCH] [PSAPI] Don't make the dll depend on MSVCRT psapi.dll can also used by low-level DLLs, such as winsrv.dll, therefore it is better to reduce its dependencies. --- dll/win32/psapi/CMakeLists.txt | 4 ++-- dll/win32/psapi/psapi.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dll/win32/psapi/CMakeLists.txt b/dll/win32/psapi/CMakeLists.txt index d92b5d415ff..60c1398b70e 100644 --- a/dll/win32/psapi/CMakeLists.txt +++ b/dll/win32/psapi/CMakeLists.txt @@ -7,7 +7,7 @@ list(APPEND SOURCE ${CMAKE_CURRENT_BINARY_DIR}/psapi.def) add_library(psapi MODULE ${SOURCE}) -set_module_type(psapi win32dll) +set_module_type(psapi win32dll ENTRYPOINT DllMain 12) target_link_libraries(psapi ${PSEH_LIB}) -add_importlibs(psapi msvcrt kernel32 ntdll) +add_importlibs(psapi kernel32 ntdll) add_cd_file(TARGET psapi DESTINATION reactos/system32 FOR all) diff --git a/dll/win32/psapi/psapi.c b/dll/win32/psapi/psapi.c index 8194571624d..c73f3176d3b 100644 --- a/dll/win32/psapi/psapi.c +++ b/dll/win32/psapi/psapi.c @@ -299,9 +299,9 @@ DllMain(HINSTANCE hDllHandle, PsStopAndAnalyzeProfile(); } break; - } + } - return TRUE; + return TRUE; }