Changed years in license comment

This commit is contained in:
Alexey Sokolov 2013-04-10 13:53:14 +03:00
parent 6eded5cc1d
commit f368d5da79
2 changed files with 6 additions and 6 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-2011. * © Alexey Sokolov (scream3r), 2010-2013.
* *
* This file is part of jSSC. * This file is part of jSSC.
* *

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-2011. * © Alexey Sokolov (scream3r), 2010-2013.
* *
* This file is part of jSSC. * This file is part of jSSC.
* *
@ -36,11 +36,11 @@ JNIEXPORT jint JNICALL Java_jssc_SerialNativeInterface_openPort(JNIEnv *env, job
char prefix[] = "\\\\.\\"; char prefix[] = "\\\\.\\";
const char* port = env->GetStringUTFChars(portName, JNI_FALSE); const char* port = env->GetStringUTFChars(portName, JNI_FALSE);
//-> Since 2.1.0 string concat fix //since 2.1.0 -> string concat fix
char portFullName[strlen(prefix) + strlen(port) + 1]; char portFullName[strlen(prefix) + strlen(port) + 1];
strcpy(portFullName, prefix); strcpy(portFullName, prefix);
strcat(portFullName, port); strcat(portFullName, port);
//<- Since 2.1.0 //<- since 2.1.0
HANDLE hComm; HANDLE hComm;
hComm = CreateFile(portFullName, hComm = CreateFile(portFullName,
@ -114,7 +114,7 @@ JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setParams
if(SetCommState(hComm, dcb)){ if(SetCommState(hComm, dcb)){
//-> Since 2.1.0 previously setted timeouts by another application should be cleared //since 2.1.0 -> previously setted timeouts by another application should be cleared
COMMTIMEOUTS *lpCommTimeouts = new COMMTIMEOUTS(); COMMTIMEOUTS *lpCommTimeouts = new COMMTIMEOUTS();
lpCommTimeouts->ReadIntervalTimeout = 0; lpCommTimeouts->ReadIntervalTimeout = 0;
lpCommTimeouts->ReadTotalTimeoutConstant = 0; lpCommTimeouts->ReadTotalTimeoutConstant = 0;
@ -125,7 +125,7 @@ JNIEXPORT jboolean JNICALL Java_jssc_SerialNativeInterface_setParams
returnValue = JNI_TRUE; returnValue = JNI_TRUE;
} }
delete lpCommTimeouts; delete lpCommTimeouts;
//<- Since 2.1.0 //<- since 2.1.0
} }
} }
delete dcb; delete dcb;