include/commdlg.h: change OFNHookProc return type

Ricardo Filipe ricardo_barbano at hotmail.com
Sun Feb 8 06:28:09 CST 2009


http://msdn.microsoft.com/en-us/library/ms646931(VS.85).aspx

changed the OFNHookProc return type and all affected instances.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20090208/e94d17b2/attachment.htm 
-------------- next part --------------
From 793106fb5b20488ca8e57cac502f9559d431e380 Mon Sep 17 00:00:00 2001
From: Ricardo Filipe <ricardo_barbano at hotmail.com>
Date: Sun, 8 Feb 2009 12:20:47 +0000
Subject: include/commdlg.h: change OFNHookProc return type

---
 dlls/comdlg32/tests/filedlg.c |    4 ++--
 include/commdlg.h             |    2 +-
 programs/regedit/framewnd.c   |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c
index 9c3487f..cff103e 100644
--- a/dlls/comdlg32/tests/filedlg.c
+++ b/dlls/comdlg32/tests/filedlg.c
@@ -29,7 +29,7 @@
 
 /* ##### */
 
-static UINT CALLBACK OFNHookProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static UINT_PTR CALLBACK OFNHookProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     LPNMHDR nmh;
 
@@ -135,7 +135,7 @@ static void test_DialogCancel(void)
     }
 }
 
-static UINT CALLBACK create_view_window2_hook(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam)
+static UINT_PTR CALLBACK create_view_window2_hook(HWND dlg, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     if (msg == WM_NOTIFY)
     {
diff --git a/include/commdlg.h b/include/commdlg.h
index 8d410bd..eb61258 100644
--- a/include/commdlg.h
+++ b/include/commdlg.h
@@ -72,7 +72,7 @@ extern "C" {
 #define SAVE_DIALOG  1
 #define OPEN_DIALOG  2
 
-typedef UINT (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
+typedef UINT_PTR (CALLBACK *LPOFNHOOKPROC)(HWND,UINT,WPARAM,LPARAM);
 
 typedef struct tagOFNA {
 	DWORD		lStructSize;
diff --git a/programs/regedit/framewnd.c b/programs/regedit/framewnd.c
index 79dcf24..6c8745e 100644
--- a/programs/regedit/framewnd.c
+++ b/programs/regedit/framewnd.c
@@ -259,7 +259,7 @@ static void ExportRegistryFile_StoreSelection(HWND hdlg, OPENFILENAMEW *pOpenFil
         pOpenFileName->lCustData = (LPARAM)HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(WCHAR));
 }
 
-static UINT CALLBACK ExportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
+static UINT_PTR CALLBACK ExportRegistryFile_OFNHookProc(HWND hdlg, UINT uiMsg, WPARAM wParam, LPARAM lParam)
 {
     static OPENFILENAMEW* pOpenFileName;
     OFNOTIFYW *pOfNotify;
-- 
1.5.6.3


More information about the wine-patches mailing list