diff options
author | Gert Driesen <drieseng@users.sourceforge.net> | 2007-05-24 07:57:03 +0400 |
---|---|---|
committer | Gert Driesen <drieseng@users.sourceforge.net> | 2007-05-24 07:57:03 +0400 |
commit | df473e219c3bd28e30c1ad07ff13f9a881881a38 (patch) | |
tree | 52cb457069623b375dec983556f3ce5c52d96a54 /mcs/class/System.Drawing/System.Drawing.Printing | |
parent | 0c3c09533deea314bac9786b59712d764f68b0ac (diff) |
* PrintingServicesWin32.cs: Pass 0 as mode to DocumentProperties to
obtain the size of the buffer required to hold the DEVMODE structure.
Fixes bug #81723.
svn path=/trunk/mcs/; revision=77890
Diffstat (limited to 'mcs/class/System.Drawing/System.Drawing.Printing')
-rw-r--r-- | mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog | 6 | ||||
-rw-r--r-- | mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog b/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog index e98506b1354..8e716ce4bbd 100644 --- a/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog +++ b/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog @@ -1,3 +1,9 @@ +2007-05-24 Gert Driesen <drieseng@users.sourceforge.net> + + * PrintingServicesWin32.cs: Pass 0 as mode to DocumentProperties to + obtain the size of the buffer required to hold the DEVMODE structure. + Fixes bug #81723. + 2007-05-23 Sebastien Pouliot <sebastien@ximian.com> * PreviewPrintController.cs: Reduce bitmap size and avoid scaling the diff --git a/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs b/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs index 978032e7c66..108a19ab279 100644 --- a/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs +++ b/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs @@ -81,7 +81,7 @@ namespace System.Drawing.Printing try { Win32OpenPrinter (printer, out hPrn, IntPtr.Zero); - ret = Win32DocumentProperties (IntPtr.Zero, hPrn, null, IntPtr.Zero, IntPtr.Zero, 2); + ret = Win32DocumentProperties (IntPtr.Zero, hPrn, null, IntPtr.Zero, IntPtr.Zero, 0); if (ret < 0) return; |