https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e5db85276e31e3b914575…
commit e5db85276e31e3b9145755b9129a5b727701817e
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Thu Feb 22 13:37:36 2024 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Thu Feb 22 22:41:04 2024 +0100
[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;
}