[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.
This commit is contained in:
Hermès Bélusca-Maïto 2024-02-22 13:37:36 +01:00
parent 047f1c3d55
commit e5db85276e
No known key found for this signature in database
GPG Key ID: 3B2539C65E7B93D0
2 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -299,9 +299,9 @@ DllMain(HINSTANCE hDllHandle,
PsStopAndAnalyzeProfile();
}
break;
}
}
return TRUE;
return TRUE;
}