Skip to content

Commit

Permalink
Fix typo as suggested in PR.
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Aug 10, 2024
1 parent 999540a commit 66816d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/cpp/windows/jssc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ JNIEXPORT jobjectArray JNICALL Java_jssc_SerialNativeInterface_getSerialPortName
if(result == ERROR_SUCCESS){
env->SetObjectArrayElement(returnArray, i, env->NewStringUTF((char*)lpData));
}else if(result == ERROR_MORE_DATA && lpData_capacity < UINT_MAX){
/* whops our supplied buffer was not large enough. Fallback to a heap
/* whoops our supplied buffer was not large enough. Fallback to a heap
* allocd one. RegEnumValueA was kind enough to set 'lpcbData' to the
* required length before return. */
lpData = (lpData == lpDataOnStack) ? NULL : lpData;
Expand Down

0 comments on commit 66816d1

Please sign in to comment.