summaryrefslogtreecommitdiff
path: root/dso/win32/dso.c
diff options
context:
space:
mode:
Diffstat (limited to 'dso/win32/dso.c')
-rw-r--r--dso/win32/dso.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dso/win32/dso.c b/dso/win32/dso.c
index 085470905..89885e5fa 100644
--- a/dso/win32/dso.c
+++ b/dso/win32/dso.c
@@ -84,9 +84,9 @@ APR_DECLARE(apr_status_t) apr_dso_load(struct apr_dso_handle_t **res_handle,
rv = apr_get_os_error();
if (GetFullPathNameW(wpath, sizeof(fpath) / sizeof(apr_wchar_t), fpath, &ignored)) {
if (SetDllDirectoryW(fpath)) {
- os_handle = LoadLibraryExW(fpath, NULL, 0);
+ os_handle = LoadLibraryExW(wpath, NULL, 0);
if (!os_handle)
- os_handle = LoadLibraryExW(fpath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
+ os_handle = LoadLibraryExW(wpath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);
if (os_handle)
rv = APR_SUCCESS;
}