Dmitry Timoshkov : winecfg: Avoid unnecessary casts.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 7 07:49:05 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: f2ae9e4bdc107a7ed242f7a132040bd2bd13333d
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=f2ae9e4bdc107a7ed242f7a132040bd2bd13333d

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Wed Jun  7 16:45:47 2006 +0900

winecfg: Avoid unnecessary casts.

---

 programs/winecfg/main.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/programs/winecfg/main.c b/programs/winecfg/main.c
index 0c62f24..d2b3100 100644
--- a/programs/winecfg/main.c
+++ b/programs/winecfg/main.c
@@ -37,7 +37,7 @@ #include "winecfg.h"
 
 WINE_DEFAULT_DEBUG_CHANNEL(winecfg);
 
-static void CALLBACK
+static INT CALLBACK
 PropSheetCallback (HWND hWnd, UINT uMsg, LPARAM lParam)
 {
     switch (uMsg)
@@ -54,6 +54,7 @@ PropSheetCallback (HWND hWnd, UINT uMsg,
     default:
 	break;
     }
+    return 0;
 }
 
 static INT_PTR CALLBACK
@@ -197,8 +198,8 @@ doPropertySheet (HINSTANCE hInstance, HW
     psh.u.pszIcon = NULL;
     psh.pszCaption =  load_string (IDS_WINECFG_TITLE);
     psh.nPages = NUM_PROPERTY_PAGES;
-    psh.u3.ppsp = (LPCPROPSHEETPAGEW) & psp;
-    psh.pfnCallback = (PFNPROPSHEETCALLBACK) PropSheetCallback;
+    psh.u3.ppsp = psp;
+    psh.pfnCallback = PropSheetCallback;
     psh.u2.nStartPage = 0;
 
     /*




More information about the wine-cvs mailing list