From f2ae9e4bdc107a7ed242f7a132040bd2bd13333d Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Wed, 7 Jun 2006 16:45:47 +0900 Subject: [PATCH] winecfg: Avoid unnecessary casts. --- programs/winecfg/main.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/programs/winecfg/main.c b/programs/winecfg/main.c index 0c62f249084..d2b31003d41 100644 --- a/programs/winecfg/main.c +++ b/programs/winecfg/main.c @@ -37,7 +37,7 @@ 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, LPARAM lParam) default: break; } + return 0; } static INT_PTR CALLBACK @@ -197,8 +198,8 @@ doPropertySheet (HINSTANCE hInstance, HWND hOwner) 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; /* -- 2.11.4.GIT