< prev index next >

src/java.base/windows/native/libjava/jni_util_md.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2004, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 72,82 **** strcpy(jniEntryName, sym); } return; } ! size_t getLastErrorString(char *utf8_jvmErrorMsg, size_t cbErrorMsg) { size_t n = 0; if (cbErrorMsg > 0) { BOOLEAN noError = FALSE; --- 72,82 ---- strcpy(jniEntryName, sym); } return; } ! JNIEXPORT size_t JNICALL getLastErrorString(char *utf8_jvmErrorMsg, size_t cbErrorMsg) { size_t n = 0; if (cbErrorMsg > 0) { BOOLEAN noError = FALSE;
*** 142,152 **** } } return n; } ! int getErrorString(int err, char *buf, size_t len) { int ret = 0; if (err == 0 || len < 1) return 0; ret = strerror_s(buf, len, err); --- 142,152 ---- } } return n; } ! JNIEXPORT int JNICALL getErrorString(int err, char *buf, size_t len) { int ret = 0; if (err == 0 || len < 1) return 0; ret = strerror_s(buf, len, err);
< prev index next >