[1/2] include/commdlg.h: Fix definition of LPPRINTHOOKPROC and LPSETUPHOOKPROC.

Dmitry Timoshkov dmitry at baikal.ru
Wed May 8 04:15:34 CDT 2013


---
 dlls/comdlg32/printdlg.c | 2 +-
 include/commdlg.h        | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index e3b89ea..3c3fab3 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -3987,7 +3987,7 @@ struct callback_data
     IObjectWithSite *object;
 };
 
-static UINT CALLBACK pdlgex_hook_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
+static UINT_PTR CALLBACK pdlgex_hook_proc(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp)
 {
     if (msg == WM_INITDIALOG)
     {
diff --git a/include/commdlg.h b/include/commdlg.h
index db5aaaa..df56c14 100644
--- a/include/commdlg.h
+++ b/include/commdlg.h
@@ -531,8 +531,8 @@ static const WCHAR HELPMSGSTRINGW[] = { 'c','o','m','m','d','l','g','_',
         (void)SNDMSG(_hdlg, CDM_SETDEFEXT, 0, (LPARAM)(LPSTR)_pszext)
 
 
-typedef UINT (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
-typedef UINT (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
+typedef UINT_PTR (CALLBACK *LPPRINTHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
+typedef UINT_PTR (CALLBACK *LPSETUPHOOKPROC) (HWND, UINT, WPARAM, LPARAM);
 
 typedef struct tagPDA
 {
-- 
1.8.2.2




More information about the wine-patches mailing list