This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-daemon.git
commit c04c91e9bc1dcef64876026c845bbc42f871818a Author: Mark Thomas <[email protected]> AuthorDate: Thu Apr 25 19:05:47 2019 +0100 Hardening. riched32.dll should only be loaded from system32 --- src/native/windows/src/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native/windows/src/gui.c b/src/native/windows/src/gui.c index eeb676c..381d483 100644 --- a/src/native/windows/src/gui.c +++ b/src/native/windows/src/gui.c @@ -68,7 +68,7 @@ LPAPXGUISTORE apxGuiInitialize(WNDPROC lpfnWndProc, LPCTSTR szAppName) InitCommonControlsEx(&stCmn); - _st_sys_riched = LoadLibraryA("RICHED32.DLL"); + _st_sys_riched = LoadLibraryExA("RICHED32.DLL", NULL, LOAD_LIBRARY_SEARCH_SYSTEM32); _st_sys_gui.hIconSm = LoadImage(_st_sys_gui.hInstance, MAKEINTRESOURCE(IDI_MAINICON), IMAGE_ICON, 16, 16, LR_DEFAULTCOLOR); _st_sys_gui.hIcon = LoadImage(_st_sys_gui.hInstance, MAKEINTRESOURCE(IDI_MAINICON),
