From 500d117c15c57e100cad4fcf4703ed8c90414582 Mon Sep 17 00:00:00 2001 From: "Allan K. Edwards" Date: Wed, 6 Oct 2004 19:40:47 +0000 Subject: [PATCH] parm cast should be DWORD git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105394 13f79535-47bb-0310-9956-ffa450edef68 --- server/mpm/winnt/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/mpm/winnt/service.c b/server/mpm/winnt/service.c index e1db466bbe..5e4e5ba7b3 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; } -- 2.50.1