diff options
author | William A. Rowe Jr <wrowe@apache.org> | 2001-05-16 03:49:16 +0000 |
---|---|---|
committer | William A. Rowe Jr <wrowe@apache.org> | 2001-05-16 03:49:16 +0000 |
commit | 9a4d9bcf674826a95828f2e9a5a57a7cfd79b0cc (patch) | |
tree | d9264be647bf6c0624bb7d6b00c737d8502d8acf /misc | |
parent | 48410ece0733534d7c75c18bfcf9fa93bd0e8370 (diff) | |
download | apr-9a4d9bcf674826a95828f2e9a5a57a7cfd79b0cc.tar.gz |
Those aren't DWORDs, they are apr_size_t.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61647 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'misc')
-rw-r--r-- | misc/unix/errorcodes.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc/unix/errorcodes.c b/misc/unix/errorcodes.c index 63267001a..2e8099116 100644 --- a/misc/unix/errorcodes.c +++ b/misc/unix/errorcodes.c @@ -278,15 +278,14 @@ static const struct { 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) { |