You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@locus.apache.org on 2000/10/06 19:21:50 UTC
cvs commit: apache-2.0/src/lib/apr/misc/unix errorcodes.c
wrowe 00/10/06 10:21:50
Modified: src/lib/apr/misc/unix errorcodes.c
Log:
One more underlying change to highlight of the Win32 canonical errors.
Revision Changes Path
1.26 +1 -10 apache-2.0/src/lib/apr/misc/unix/errorcodes.c
Index: errorcodes.c
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/misc/unix/errorcodes.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- errorcodes.c 2000/08/06 06:07:15 1.25
+++ errorcodes.c 2000/10/06 17:21:49 1.26
@@ -211,6 +211,7 @@
DWORD len;
DWORD i;
+
len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
errcode,
@@ -280,17 +281,7 @@
char *apr_strerror(apr_status_t statcode, char *buf, apr_size_t bufsize)
{
if (statcode < APR_OS_START_ERROR) {
-#ifdef WIN32
- /* XXX This is just plain wrong. We started discussing this one
- * day, and then it dropped, but doing this here is a symptom of a
- * problem with the design that will keep us from safely sharing
- * Windows code with any other platform. This needs to be changed,
- * Windows is NOT a special platform when it comes to APR. rbb
- */
- return apr_os_strerror(buf, bufsize, statcode);
-#else
return stuffbuffer(buf, bufsize, strerror(statcode));
-#endif
}
else if (statcode < APR_OS_START_USEERR) {
return stuffbuffer(buf, bufsize, apr_error_string(statcode));