summaryrefslogtreecommitdiff
path: root/file_io
diff options
context:
space:
mode:
authorwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-11-28 14:40:26 +0000
committerwrowe <wrowe@13f79535-47bb-0310-9956-ffa450edef68>2001-11-28 14:40:26 +0000
commit415f638c57dd08a4fb1642fe899ead500b7ab5d6 (patch)
treea77601480ed88617536df0cbf03a978708e57c3f /file_io
parentbf6041d60ac554157ffae29c9f1e010f64c73c87 (diff)
downloadlibapr-415f638c57dd08a4fb1642fe899ead500b7ab5d6.tar.gz
Now that hurts... fix of my patch from Barry Pederson <barryp@yahoo.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62573 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'file_io')
-rw-r--r--file_io/win32/filestat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file_io/win32/filestat.c b/file_io/win32/filestat.c
index 758035d12..8952f79d0 100644
--- a/file_io/win32/filestat.c
+++ b/file_io/win32/filestat.c
@@ -246,9 +246,9 @@ apr_status_t more_finfo(apr_finfo_t *finfo, const void *ufile,
if (whatfile == MORE_OF_WFSPEC) {
apr_wchar_t *wfile = (apr_wchar_t*) ufile;
int fix = 0;
- if (wcsncmp(wfile, L"\\\\?\\", 4)) {
+ if (wcsncmp(wfile, L"\\\\?\\", 4) == 0) {
fix = 4;
- if (wcsncmp(wfile + fix, L"UNC\\", 4))
+ if (wcsncmp(wfile + fix, L"UNC\\", 4) == 0)
wfile[6] = L'\\', fix = 6;
}
rv = GetNamedSecurityInfoW(wfile + fix,