winecfg: Avoid unnecessary casts
Dmitry Timoshkov
dmitry at codeweavers.com
Wed Jun 7 02:45:47 CDT 2006
Hello,
Changelog:
winecfg: Avoid unnecessary casts.
--- cvs/hq/wine/programs/winecfg/main.c 2006-05-24 13:17:01.000000000 +0900
+++ wine/programs/winecfg/main.c 2006-06-07 16:13:11.000000000 +0900
@@ -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,
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-patches
mailing list