From 1f322aa15b5dea9d15e1382122fe7b0984981357 Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 20 Jan 2014 13:59:18 +0300 Subject: [PATCH] Added 'since' comment and changed comment date --- src/cpp/windows/jssc.c++ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/windows/jssc.c++ b/src/cpp/windows/jssc.c++ index 7d9b095..046856d 100644 --- a/src/cpp/windows/jssc.c++ +++ b/src/cpp/windows/jssc.c++ @@ -1,5 +1,5 @@ /* jSSC (Java Simple Serial Connector) - serial port communication library. - * © Alexey Sokolov (scream3r), 2010-2013. + * © Alexey Sokolov (scream3r), 2010-2014. * * This file is part of jSSC. * @@ -57,7 +57,7 @@ JNIEXPORT jlong JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, jo if(hComm != INVALID_HANDLE_VALUE){ DCB *dcb = new DCB(); if(!GetCommState(hComm, dcb)){ - CloseHandle(hComm); + CloseHandle(hComm);//since 2.7.0 hComm = (HANDLE)jssc_SerialNativeInterface_ERR_INCORRECT_SERIAL_PORT;//(-4)Incorrect serial port } delete dcb;