Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarolyn MacLeod2001-09-18 16:28:06 +0000
committerCarolyn MacLeod2001-09-18 16:28:06 +0000
commitd0682e8d2ba5d436b3f6de017eab6cb5d0df31fc (patch)
treebd046a79284ca9dc69b72d2fbb9fb716732fac05
parentdc1892f84e0484b445d7f326ba6866cd583ff65d (diff)
downloadeclipse.platform.swt-d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc.tar.gz
eclipse.platform.swt-d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc.tar.xz
eclipse.platform.swt-d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc.zip
1GK7Q10
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java
index b4aea6212a..8555def86c 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java
@@ -212,8 +212,8 @@ public PrinterData open() {
pd.nToPage = (short) endPage;
if (OS.PrintDlg(pd)) {
/* Get driver and device from the DEVNAMES struct */
+ int size = OS.GlobalSize(pd.hDevNames);
int ptr = OS.GlobalLock(pd.hDevNames);
- int size = OS.GlobalSize(ptr);
byte [] DEVNAMES = new byte[size];
OS.MoveMemory(DEVNAMES, ptr, size);
OS.GlobalUnlock(ptr);

Back to the top