summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/unix/errorcodes.c5
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) {