comdlg32/tests: fix hook procedures return type
Ricardo Filipe
ricardo_barbano at hotmail.com
Thu Jan 22 10:34:09 CST 2009
changed according to http://msdn.microsoft.com/en-us/library/ms646931.aspx
and also in the Vista SDK commdlg.h header file.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20090122/a5638116/attachment-0001.htm
-------------- next part --------------
From 363fe120e5d666989fc8819e2cd4a4c6b85500f0 Mon Sep 17 00:00:00 2001
From: Ricardo Filipe <ricardo_barbano at hotmail.com>
Date: Thu, 22 Jan 2009 16:29:19 +0000
Subject: comdlg32/tests: fix the hook procedures return type
---
dlls/comdlg32/tests/filedlg.c | 4 ++--
include/commdlg.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comdlg32/tests/filedlg.c b/dlls/comdlg32/tests/filedlg.c
index 5dc7a36..035eb96 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;
--
1.5.6.3
More information about the wine-patches
mailing list