diff options
author | Carolyn MacLeod | 2001-09-18 16:28:06 +0000 |
---|---|---|
committer | Carolyn MacLeod | 2001-09-18 16:28:06 +0000 |
commit | d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc (patch) | |
tree | bd046a79284ca9dc69b72d2fbb9fb716732fac05 | |
parent | dc1892f84e0484b445d7f326ba6866cd583ff65d (diff) | |
download | eclipse.platform.swt-d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc.tar.gz eclipse.platform.swt-d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc.tar.xz eclipse.platform.swt-d0682e8d2ba5d436b3f6de017eab6cb5d0df31fc.zip |
1GK7Q10
-rwxr-xr-x | bundles/org.eclipse.swt/Eclipse SWT Printing/win32/org/eclipse/swt/printing/PrintDialog.java | 2 |
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);
|