- bux fixed in usb_control_msg (the values read were not written to the original array)
git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@230 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
@@ -588,8 +588,6 @@ JNIEXPORT jint JNICALL Java_ch_ntb_usb_LibusbJava_usb_1control_1msg
|
||||
{
|
||||
jbyte *bytes = env->GetByteArrayElements(jbytes, NULL);
|
||||
int retVal = usb_control_msg((usb_dev_handle *) dev_handle, requesttype, request, value, index, (char *) bytes, size, timeout);
|
||||
if (bytes) { return retVal; }
|
||||
jbytes = env->NewByteArray(size);
|
||||
env->SetByteArrayRegion(jbytes, 0, size, bytes);
|
||||
return retVal;
|
||||
}
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
#define RC_FILE_SUB_TYPE VFT2_UNKNOWN
|
||||
#define RC_PRODUCT_STR "Java LibUsb-Win32 wrapper - DLL"
|
||||
#define RC_FILE_NAME_STR "LibusbJava.dll"
|
||||
#define RC_VERSION_STR "0.1.0.0"
|
||||
#define RC_VERSION_STR "0.1.0.1"
|
||||
|
||||
#include "common.rc"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
version.major=0
|
||||
version.minor=1
|
||||
version.micro=0
|
||||
version.nano=0
|
||||
version.nano=1
|
||||
Reference in New Issue
Block a user