wrowe 01/07/29 20:12:28
Modified: file_io/win32 open.c
Log:
Fix a potential source of confusion... any bad filename string is EINVAL
Revision Changes Path
1.80 +1 -1 apr/file_io/win32/open.c
Index: open.c
===================================================================
RCS file: /home/cvs/apr/file_io/win32/open.c,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -r1.79 -r1.80
--- open.c 2001/07/18 19:12:41 1.79
+++ open.c 2001/07/30 03:12:28 1.80
@@ -98,7 +98,7 @@
}
if (rv = conv_utf8_to_ucs2(srcstr, &srcremains, t, &retremains)) {
- return rv;
+ return (rv == APR_INCOMPLETE) ? APR_EINVAL : rv;
}
if (srcremains) {
return APR_ENAMETOOLONG;