Skip to content

Commit

Permalink
Try fix windoof build
Browse files Browse the repository at this point in the history
  • Loading branch information
hiddenalpha committed Nov 15, 2023
1 parent d4150ed commit 19610bc
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 @@ -298,7 +298,7 @@ JNIEXPORT jbyteArray JNICALL Java_jssc_SerialNativeInterface_readBytes
}
}
}
else if(GetLastError() == ERROR_HANDLE_INVALID){
else if(GetLastError() == ERROR_INVALID_HANDLE){
jclass exClz = env->FindClass("java/lang/IllegalArgumentException");
if( exClz != NULL ) env->ThrowNew(exClz, "EBADF");
}
Expand Down

0 comments on commit 19610bc

Please sign in to comment.