src/java.base/windows/native/libjli/java_md.c
changeset 49440 396ea30afbd5
parent 47216 71c04702a3d5
child 53656 645ba889ee5f
child 56721 01b558efd286
equal deleted inserted replaced
49439:bf53d82a51e5 49440:396ea30afbd5
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2018, 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
   493         buffer[size - 1] = '\0';
   493         buffer[size - 1] = '\0';
   494     }
   494     }
   495     return rc;
   495     return rc;
   496 }
   496 }
   497 
   497 
   498 void
   498 JNIEXPORT void JNICALL
   499 JLI_ReportErrorMessage(const char* fmt, ...) {
   499 JLI_ReportErrorMessage(const char* fmt, ...) {
   500     va_list vl;
   500     va_list vl;
   501     va_start(vl,fmt);
   501     va_start(vl,fmt);
   502 
   502 
   503     if (IsJavaw()) {
   503     if (IsJavaw()) {
   522 /*
   522 /*
   523  * Just like JLI_ReportErrorMessage, except that it concatenates the system
   523  * Just like JLI_ReportErrorMessage, except that it concatenates the system
   524  * error message if any, its upto the calling routine to correctly
   524  * error message if any, its upto the calling routine to correctly
   525  * format the separation of the messages.
   525  * format the separation of the messages.
   526  */
   526  */
   527 void
   527 JNIEXPORT void JNICALL
   528 JLI_ReportErrorMessageSys(const char *fmt, ...)
   528 JLI_ReportErrorMessageSys(const char *fmt, ...)
   529 {
   529 {
   530     va_list vl;
   530     va_list vl;
   531 
   531 
   532     int save_errno = errno;
   532     int save_errno = errno;
   586         (void)LocalFree((HLOCAL)errtext);
   586         (void)LocalFree((HLOCAL)errtext);
   587     }
   587     }
   588     va_end(vl);
   588     va_end(vl);
   589 }
   589 }
   590 
   590 
   591 void  JLI_ReportExceptionDescription(JNIEnv * env) {
   591 JNIEXPORT void JNICALL
       
   592 JLI_ReportExceptionDescription(JNIEnv * env) {
   592     if (IsJavaw()) {
   593     if (IsJavaw()) {
   593        /*
   594        /*
   594         * This code should be replaced by code which opens a window with
   595         * This code should be replaced by code which opens a window with
   595         * the exception detail message, for now atleast put a dialog up.
   596         * the exception detail message, for now atleast put a dialog up.
   596         */
   597         */