Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Rashbrook2014-11-12 16:39:41 +0000
committerLakshmi Shanmugam2014-12-23 09:44:45 +0000
commitdb3186107125e4af3df777f17d4017ee4a8d99bf (patch)
treedaffc51d3d03b4ceebc2de0d058df8ebee7500b8
parent35c88fb5d4189f7597e6395afd73cda799c5c280 (diff)
downloadeclipse.platform.swt-db3186107125e4af3df777f17d4017ee4a8d99bf.tar.gz
eclipse.platform.swt-db3186107125e4af3df777f17d4017ee4a8d99bf.tar.xz
eclipse.platform.swt-db3186107125e4af3df777f17d4017ee4a8d99bf.zip
Bug 451204 - nsIInputStream.Available's type changed
Write a long long on XULRunner 24. Change-Id: I73637d89e1e860a82428e5a91dc6e6a98cfe3b1b Signed-off-by: Neil Rashbrook <neil@parkwaycc.co.uk>
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java
index f3215f6fbd..c56de328d0 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Mozilla/common/org/eclipse/swt/browser/InputStream.java
@@ -99,7 +99,10 @@ int Close () {
int Available (long /*int*/ _retval) {
int available = buffer == null ? 0 : buffer.length - index;
- XPCOM.memmove (_retval, new int[] {available}, 4);
+ if (MozillaVersion.CheckVersion (MozillaVersion.VERSION_XR24))
+ XPCOM.memmove (_retval, new long[] {available}, 8);
+ else
+ XPCOM.memmove (_retval, new int[] {available}, 4);
return XPCOM.NS_OK;
}

Back to the top