jdk/src/java.base/windows/native/libjava/ProcessImpl_md.c
changeset 30784 28105f71beb2
parent 28868 445be2b2eae8
equal deleted inserted replaced
30783:e664daa546bb 30784:28105f71beb2
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    88     if (n > 0) /*terminate '\0' is not a part of conversion procedure*/
    88     if (n > 0) /*terminate '\0' is not a part of conversion procedure*/
    89         n = WideCharToMultiByte(
    89         n = WideCharToMultiByte(
    90             CP_UTF8,
    90             CP_UTF8,
    91             0,
    91             0,
    92             utf16_javaMessage,
    92             utf16_javaMessage,
    93             n, /*by creation n <= MESSAGE_LENGTH*/
    93             (int)n, /*by creation n <= MESSAGE_LENGTH*/
    94             utf8_javaMessage,
    94             utf8_javaMessage,
    95             MESSAGE_LENGTH*2,
    95             MESSAGE_LENGTH*2,
    96             NULL,
    96             NULL,
    97             NULL);
    97             NULL);
    98 
    98