Author: gert
Date: 2007-05-23 23:57:03 -0400 (Wed, 23 May 2007)
New Revision: 77890

Modified:
   trunk/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog
   
trunk/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs
Log:
* PrintingServicesWin32.cs: Pass 0 as mode to DocumentProperties to
obtain the size of the buffer required to hold the DEVMODE structure.
Fixes bug #81723.


Modified: trunk/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog    
2007-05-24 02:00:30 UTC (rev 77889)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Printing/ChangeLog    
2007-05-24 03:57:03 UTC (rev 77890)
@@ -1,3 +1,9 @@
+2007-05-24  Gert Driesen  <[EMAIL PROTECTED]>
+
+       * 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  <[EMAIL PROTECTED]>
 
        * PreviewPrintController.cs: Reduce bitmap size and avoid scaling the

Modified: 
trunk/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs
===================================================================
--- 
trunk/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs 
    2007-05-24 02:00:30 UTC (rev 77889)
+++ 
trunk/mcs/class/System.Drawing/System.Drawing.Printing/PrintingServicesWin32.cs 
    2007-05-24 03:57:03 UTC (rev 77890)
@@ -81,7 +81,7 @@
 
                        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;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to