From: Allan K. Edwards Date: Wed, 6 Oct 2004 19:40:47 +0000 (+0000) Subject: parm cast should be DWORD X-Git-Tag: 2.1.1~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=500d117c15c57e100cad4fcf4703ed8c90414582;p=thirdparty%2Fapache%2Fhttpd.git parm cast should be DWORD git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105394 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/mpm/winnt/service.c b/server/mpm/winnt/service.c index e1db466bbee..5e4e5ba7b37 100644 --- a/server/mpm/winnt/service.c +++ b/server/mpm/winnt/service.c @@ -134,7 +134,7 @@ void hold_console_open_on_error(void) hConErr = GetStdHandle(STD_ERROR_HANDLE); if ((hConIn == INVALID_HANDLE_VALUE) || (hConErr == INVALID_HANDLE_VALUE)) return; - if (!WriteConsole(hConErr, msg, (int)strlen(msg), &result, NULL) || !result) + if (!WriteConsole(hConErr, msg, (DWORD)strlen(msg), &result, NULL) || !result) return; if (!GetConsoleScreenBufferInfo(hConErr, &coninfo)) return; @@ -159,7 +159,7 @@ void hold_console_open_on_error(void) sprintf (count, "%d...", remains); if (!SetConsoleCursorPosition(hConErr, coninfo.dwCursorPosition)) return; - if (!WriteConsole(hConErr, count, (int)strlen(count), &result, NULL) + if (!WriteConsole(hConErr, count, (DWORD)strlen(count), &result, NULL) || !result) return; }