summaryrefslogtreecommitdiff
path: root/dso
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-01-20 21:39:05 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-01-20 21:39:05 +0000
commitce8662e652668c16ad85d85ead2bc607c45715bb (patch)
tree705051562328f8e6d0ac7c9f821c4afb47982810 /dso
parent8291d1fc76183d67b14a9a33e98aaceda5b68e0a (diff)
downloadlibapr-ce8662e652668c16ad85d85ead2bc607c45715bb.tar.gz
The platform changes in apr to support the APR_FINFO_wanted declaration
changes for apr_stat/lstat/getfileinfo. Much, much work to do here, but this gets us started. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61086 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'dso')
-rw-r--r--dso/win32/dso.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/dso/win32/dso.c b/dso/win32/dso.c
index 3b6979016..64b181883 100644
--- a/dso/win32/dso.c
+++ b/dso/win32/dso.c
@@ -81,10 +81,12 @@ APR_DECLARE(apr_status_t) apr_dso_load(struct apr_dso_handle_t **res_handle,
apr_oslevel_e os_level;
if (!apr_get_oslevel(ctx, &os_level) && os_level >= APR_WIN_NT)
{
- apr_wchar_t *wpath = utf8_to_unicode_path(path, ctx);
- if (!wpath)
- return APR_ENAMETOOLONG;
-
+ apr_wchar_t wpath[8192];
+ apr_status_t rv;
+ if (rv = utf8_to_unicode_path(wpath, sizeof(wpath)
+ / sizeof(apr_wchar_t), path)) {
+ return rv;
+ }
/* Prevent ugly popups from killing our app */
em = SetErrorMode(SEM_FAILCRITICALERRORS);
os_handle = LoadLibraryExW(wpath, NULL, LOAD_WITH_ALTERED_SEARCH_PATH);