Added 'since' comment and changed comment date

This commit is contained in:
Alexey Sokolov 2014-01-20 13:59:18 +03:00
parent 5a32b4b4ee
commit 1f322aa15b
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* jSSC (Java Simple Serial Connector) - serial port communication library. /* 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. * 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){ if(hComm != INVALID_HANDLE_VALUE){
DCB *dcb = new DCB(); DCB *dcb = new DCB();
if(!GetCommState(hComm, 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 hComm = (HANDLE)jssc_SerialNativeInterface_ERR_INCORRECT_SERIAL_PORT;//(-4)Incorrect serial port
} }
delete dcb; delete dcb;