]> granicus.if.org Git - apache/commitdiff
parm cast should be DWORD
authorAllan K. Edwards <ake@apache.org>
Wed, 6 Oct 2004 19:40:47 +0000 (19:40 +0000)
committerAllan K. Edwards <ake@apache.org>
Wed, 6 Oct 2004 19:40:47 +0000 (19:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105394 13f79535-47bb-0310-9956-ffa450edef68

server/mpm/winnt/service.c

index e1db466bbee4df8b356c352212893b1c306d7042..5e4e5ba7b372b143acfbd601da9786ea8cd7c463 100644 (file)
@@ -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;
     }