diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java index 4ca9e8e4fc..4ea14b6073 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/gtk/org/eclipse/swt/dnd/RTFTransfer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2012 IBM Corporation and others. + * Copyright (c) 2000, 2017 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -68,7 +68,7 @@ public void javaToNative (Object object, TransferData transferData){ byte [] buffer = Converter.wcsToMbcs (string, true); long /*int*/ pValue = OS.g_malloc(buffer.length); if (pValue == 0) return; - OS.memmove(pValue, buffer, buffer.length); + C.memmove(pValue, buffer, buffer.length); transferData.length = buffer.length - 1; transferData.format = 8; transferData.pValue = pValue; @@ -91,7 +91,7 @@ public Object nativeToJava(TransferData transferData){ int size = transferData.format * transferData.length / 8; if (size == 0) return null; byte[] buffer = new byte[size]; - OS.memmove(buffer, transferData.pValue, size); + C.memmove(buffer, transferData.pValue, size); char [] chars = Converter.mbcsToWcs (buffer); String string = new String (chars); int end = string.indexOf('\0'); |