jdk/src/windows/native/java/lang/ProcessImpl_md.c
changeset 22962 309eaab8c853
parent 20191 f0e23e7272d6
child 23010 6dadb192ad81
--- a/jdk/src/windows/native/java/lang/ProcessImpl_md.c	Wed Feb 12 17:51:31 2014 +0000
+++ b/jdk/src/windows/native/java/lang/ProcessImpl_md.c	Wed Feb 12 10:51:50 2014 -0800
@@ -79,7 +79,7 @@
     /*Good suggestion about 2-bytes-per-symbol in localized error reports*/
     char  utf8_javaMessage[MESSAGE_LENGTH*2];
     const int errnum = (int)GetLastError();
-    int n = os_error_message(errnum, utf16_OSErrorMsg, ARRAY_SIZE(utf16_OSErrorMsg));
+    size_t n = os_error_message(errnum, utf16_OSErrorMsg, ARRAY_SIZE(utf16_OSErrorMsg));
     n = (n > 0)
         ? swprintf(utf16_javaMessage, MESSAGE_LENGTH, L"%s error=%d, %s", functionName, errnum, utf16_OSErrorMsg)
         : swprintf(utf16_javaMessage, MESSAGE_LENGTH, L"%s failed, error=%d", functionName, errnum);