summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2006-03-20 17:39:41 +0000
committerGrant Gayed <ggayed>2006-03-20 17:39:41 +0000
commit51c921b6abe5ee6f59297486ec99acef36f3506b (patch)
tree7a79a9504578664e7f3fdc45b6cf706e4e40f575
parent4ed58035ff07cfb3b075eeb070fca90e1c58e9b5 (diff)
downloadeclipse.platform.swt-51c921b6abe5ee6f59297486ec99acef36f3506b.tar.gz
eclipse.platform.swt-51c921b6abe5ee6f59297486ec99acef36f3506b.tar.xz
eclipse.platform.swt-51c921b6abe5ee6f59297486ec99acef36f3506b.zip
113019
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java
index 01cdfe4a65..a37e7daedf 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/Browser.java
@@ -248,7 +248,7 @@ public Browser(Composite parent, int style) {
* prepend the UTF-8 Byte Order Mark signature to the data.
*/
byte[] UTF8BOM = {(byte)0xEF, (byte)0xBB, (byte)0xBF};
- int hGlobal = OS.GlobalAlloc(OS.GMEM_FIXED, UTF8BOM.length + byteCount);
+ int hGlobal = OS.GlobalAlloc(OS.GMEM_FIXED | OS.GMEM_ZEROINIT, UTF8BOM.length + byteCount);
if (hGlobal != 0) {
OS.MoveMemory(hGlobal, UTF8BOM, UTF8BOM.length);
OS.WideCharToMultiByte(OS.CP_UTF8, 0, chars, charCount, hGlobal + UTF8BOM.length, byteCount, null, null);