2819445 SafeArray.fromLongArray fails when using VariantLongInt
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
<tr>
|
||||
<td colspan="2"><b>Bugs</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%" valign="top">2819445</td>
|
||||
<td width="87%" valign="top">SafeArray.fromLongArray fails when using VariantLongInt (M3)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="13%" valign="top">2847577</td>
|
||||
<td width="87%" valign="top">SafeArray#setString(*) incorrectly handles unicode strings (M3)</td>
|
||||
|
||||
@@ -483,7 +483,8 @@ JNIEXPORT void JNICALL Java_com_jacob_com_SafeArray_fromLongArray
|
||||
} else if (vt == VT_I8) {
|
||||
void *pData;
|
||||
SafeArrayAccessData(psa, &pData);
|
||||
memcpy(pData, arrayElements, len*sizeof(long));
|
||||
// VT_I8 is actually a LONGLONG and not a long in length SF 2819445
|
||||
memcpy(pData, arrayElements, len*sizeof(LONGLONG));
|
||||
SafeArrayUnaccessData(psa);
|
||||
} else {
|
||||
ThrowComFail(env, "safearray cannot be assigned from long", -1);
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user