[PATCH] comdlg32: Dump parameter in PrintDlgEx

Detlef Riekenberg wine.dev at web.de
Fri Nov 9 16:46:03 CST 2007


---
 dlls/comdlg32/printdlg.c |   42 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index 91ee309..f9cba9a 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -3632,6 +3632,27 @@ HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA
         return E_INVALIDARG;
     }
 
+    if(TRACE_ON(commdlg)) {
+        char flagstr[1000];
+
+        flags_to_string(lppd->Flags, pd_flags, flagstr);
+        TRACE("hwndOwner = %p, hDevMode = %p, hDevNames = %p\n",
+              lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames);
+        TRACE("flags 0x%x (%s)\n", lppd->Flags, flagstr);
+
+        TRACE("PageRanges: %d-%d (%p), min %d, max %d, copies %d\n",
+              lppd->nPageRanges, lppd->nMaxPageRanges, lppd->lpPageRanges,
+              lppd->nMinPage, lppd->nMaxPage, lppd->nCopies);
+        TRACE("hinst %p, PrintTemplateName: %p %s, lpCallback: %p\n",
+              lppd->hInstance, lppd->lpPrintTemplateName,
+              (lppd->Flags & PD_ENABLEPRINTTEMPLATE) ? debugstr_a(lppd->lpPrintTemplateName) : "",
+              lppd->lpCallback);
+
+        TRACE("nPropertyPages: %d, lphPropertyPages: %p, StartPage: %d, ResultAction: %u\n",
+              lppd->nPropertyPages, lppd->lphPropertyPages,
+              lppd->nStartPage, lppd->dwResultAction);
+    }
+
     if (!IsWindow(lppd->hwndOwner)) {
         return E_HANDLE;
     }
@@ -3673,6 +3694,27 @@ HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW
         return E_INVALIDARG;
     }
 
+    if(TRACE_ON(commdlg)) {
+        char flagstr[1000];
+
+        flags_to_string(lppd->Flags, pd_flags, flagstr);
+        TRACE("hwndOwner = %p, hDevMode = %p, hDevNames = %p\n",
+              lppd->hwndOwner, lppd->hDevMode, lppd->hDevNames);
+        TRACE("flags 0x%x (%s)\n", lppd->Flags, flagstr);
+
+        TRACE("PageRanges: %d-%d (%p), min %d, max %d, copies %d\n",
+              lppd->nPageRanges, lppd->nMaxPageRanges, lppd->lpPageRanges,
+              lppd->nMinPage, lppd->nMaxPage, lppd->nCopies);
+        TRACE("hinst %p, PrintTemplateName: %p %s, lpCallback: %p\n",
+              lppd->hInstance, lppd->lpPrintTemplateName,
+              (lppd->Flags & PD_ENABLEPRINTTEMPLATE) ? debugstr_w(lppd->lpPrintTemplateName) : "",
+              lppd->lpCallback);
+
+        TRACE("nPropertyPages: %d, lphPropertyPages: %p, StartPage: %d, ResultAction: %u\n",
+              lppd->nPropertyPages, lppd->lphPropertyPages,
+              lppd->nStartPage, lppd->dwResultAction);
+    }
+
     if (!IsWindow(lppd->hwndOwner)) {
         return E_HANDLE;
     }
-- 
1.4.1


--=-+IeNcCj5kGXipe0aOAR2--




More information about the wine-patches mailing list