Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java
index b9a0122cd1..c75a3bccb4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/Variant.java
@@ -891,9 +891,7 @@ public void setByRef(float val) {
* @since 2.1
*/
public void setByRef(long val) {
- if ((type & COM.VT_BYREF) == 0
- || (C.PTR_SIZEOF == 4 && (type & COM.VT_I4) == 0)
- || (C.PTR_SIZEOF == 8 && (type & COM.VT_I8) == 0)) {
+ if ((type & COM.VT_BYREF) == 0 || (type & COM.VT_I8) == 0) {
OLE.error(OLE.ERROR_CANNOT_CHANGE_VARIANT_TYPE);
}
OS.MoveMemory(byRefPtr, new long[]{val}, C.PTR_SIZEOF);

Back to the top