You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/05/16 05:49:16 UTC
cvs commit: apr/misc/unix errorcodes.c
wrowe 01/05/15 20:49:16
Modified: misc/unix errorcodes.c
Log:
Those aren't DWORDs, they are apr_size_t.
Revision Changes Path
1.36 +2 -3 apr/misc/unix/errorcodes.c
Index: errorcodes.c
===================================================================
RCS file: /home/cvs/apr/misc/unix/errorcodes.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- errorcodes.c 2001/04/08 08:03:09 1.35
+++ errorcodes.c 2001/05/16 03:49:16 1.36
@@ -278,15 +278,14 @@
static char *apr_os_strerror(char *buf, apr_size_t bufsize, apr_status_t errcode)
{
- DWORD len;
- DWORD i;
+ apr_size_t len, i;
len = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
errcode,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), /* Default language */
(LPTSTR) buf,
- bufsize,
+ (DWORD)bufsize,
NULL);
if (!len) {