Skip to content

Commit a20b616

Browse files
Load handler DLL with load dir on the path. (#63773)
1 parent f2793d1 commit a20b616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Servers/IIS/AspNetCoreModuleV2/AspNetCore/HandlerResolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ HandlerResolver::LoadRequestHandlerAssembly(const IHttpApplication &pApplication
110110

111111
LOG_INFOF(L"Loading request handler: '%ls'", handlerDllPath.c_str());
112112

113-
hRequestHandlerDll = LoadLibrary(handlerDllPath.c_str());
113+
hRequestHandlerDll = LoadLibraryEx(handlerDllPath.c_str(), nullptr, LOAD_LIBRARY_SEARCH_DEFAULT_DIRS | LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR);
114114
RETURN_LAST_ERROR_IF_NULL(hRequestHandlerDll);
115115

116116
if (preventUnload)

0 commit comments

Comments
 (0)