Michael Stefaniuc : appwiz: Use the correct types for callbacks.

Alexandre Julliard julliard at winehq.org
Mon Nov 19 13:38:38 CST 2012


Module: wine
Branch: master
Commit: 2a1a48b586a3285928869debfe93d5880c4f2a12
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2a1a48b586a3285928869debfe93d5880c4f2a12

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Mon Nov 19 09:28:43 2012 +0100

appwiz: Use the correct types for callbacks.

---

 dlls/appwiz.cpl/appwiz.c |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/dlls/appwiz.cpl/appwiz.c b/dlls/appwiz.cpl/appwiz.c
index c50adf7..4f6670d 100644
--- a/dlls/appwiz.cpl/appwiz.c
+++ b/dlls/appwiz.cpl/appwiz.c
@@ -592,7 +592,7 @@ static void SetInfoDialogText(HKEY hKey, LPCWSTR lpKeyName, LPCWSTR lpAltMessage
  *              lParam  - additional parameter
  * Returns    : Depends on the message
  */
-static BOOL CALLBACK SupportInfoDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK SupportInfoDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     APPINFO *iter;
     HKEY hkey;
@@ -681,8 +681,7 @@ static BOOL CALLBACK SupportInfoDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPAR
  */
 static void SupportInfo(HWND hWnd, int id)
 {
-    DialogBoxParamW(hInst, MAKEINTRESOURCEW(IDD_INFO), hWnd, (DLGPROC)
-        SupportInfoDlgProc, (LPARAM) id);
+    DialogBoxParamW(hInst, MAKEINTRESOURCEW(IDD_INFO), hWnd, SupportInfoDlgProc, id);
 }
 
 /* Definition of column headers for AddListViewColumns function */
@@ -822,7 +821,7 @@ static HIMAGELIST ResetApplicationList(BOOL bFirstRun, HWND hWnd, HIMAGELIST hIm
  *              lParam  - additional parameter
  * Returns    : Depends on the message
  */
-static BOOL CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
+static INT_PTR CALLBACK MainDlgProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 {
     int selitem;
     static HIMAGELIST hImageList;
@@ -947,7 +946,7 @@ static void StartApplet(HWND hWnd)
     psp.hInstance = hInst;
     psp.u.pszTemplate = MAKEINTRESOURCEW (IDD_MAIN);
     psp.u2.pszIcon = NULL;
-    psp.pfnDlgProc = (DLGPROC) MainDlgProc;
+    psp.pfnDlgProc = MainDlgProc;
     psp.pszTitle = tab_title;
     psp.lParam = 0;
 




More information about the wine-cvs mailing list