From cba8763c3393a663a4645f7aba7269ebf2b3473d Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Mon, 6 Dec 2004 11:51:29 +0000 Subject: [PATCH] Remove unnecessary WNDPROC casts. --- dlls/ole32/clipboard.c | 2 +- dlls/ole32/ole2.c | 2 +- dlls/richedit/richedit.c | 2 +- dlls/setupapi/virtcopy.c | 2 +- dlls/shell32/shlview.c | 2 +- dlls/shell32/systray.c | 2 +- dlls/user/tests/input.c | 2 +- programs/rundll32/rundll32.c | 2 +- programs/view/init.c | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dlls/ole32/clipboard.c b/dlls/ole32/clipboard.c index deef806b9a2..4466421074b 100644 --- a/dlls/ole32/clipboard.c +++ b/dlls/ole32/clipboard.c @@ -736,7 +736,7 @@ static HWND OLEClipbrd_CreateWindow() * We don't bother doing this since the FindClassByAtom code * would have to be changed to deal with this idiosyncrasy. */ wcex.style = CS_GLOBALCLASS; - wcex.lpfnWndProc = (WNDPROC)OLEClipbrd_WndProc; + wcex.lpfnWndProc = OLEClipbrd_WndProc; wcex.hInstance = 0; wcex.lpszClassName = OLEClipbrd_WNDCLASS; diff --git a/dlls/ole32/ole2.c b/dlls/ole32/ole2.c index 90aa1e83eed..51a1d73e1e2 100644 --- a/dlls/ole32/ole2.c +++ b/dlls/ole32/ole2.c @@ -1602,7 +1602,7 @@ static void OLEDD_Initialize() ZeroMemory (&wndClass, sizeof(WNDCLASSA)); wndClass.style = CS_GLOBALCLASS; - wndClass.lpfnWndProc = (WNDPROC)OLEDD_DragTrackerWindowProc; + wndClass.lpfnWndProc = OLEDD_DragTrackerWindowProc; wndClass.cbClsExtra = 0; wndClass.cbWndExtra = sizeof(TrackerWindowInfo*); wndClass.hCursor = 0; diff --git a/dlls/richedit/richedit.c b/dlls/richedit/richedit.c index 245bfdaf559..aba1158442d 100644 --- a/dlls/richedit/richedit.c +++ b/dlls/richedit/richedit.c @@ -778,7 +778,7 @@ VOID RICHED32_Register(void) ZeroMemory(&wndClass, sizeof(WNDCLASSA)); wndClass.style = CS_HREDRAW | CS_VREDRAW | CS_GLOBALCLASS; - wndClass.lpfnWndProc = (WNDPROC)RICHED32_WindowProc; + wndClass.lpfnWndProc = RICHED32_WindowProc; wndClass.cbClsExtra = 0; wndClass.cbWndExtra = RTFInfoOffset + sizeof(RTFControl_Info*); wndClass.hCursor = LoadCursorA(0, (LPSTR)IDC_ARROW); diff --git a/dlls/setupapi/virtcopy.c b/dlls/setupapi/virtcopy.c index 47c79dcf54a..8ffbfdddc85 100644 --- a/dlls/setupapi/virtcopy.c +++ b/dlls/setupapi/virtcopy.c @@ -658,7 +658,7 @@ void VCP_UI_RegisterProgressClass(void) registered = TRUE; ZeroMemory (&wndClass, sizeof(WNDCLASSA)); wndClass.style = CS_GLOBALCLASS | CS_DBLCLKS | CS_HREDRAW | CS_VREDRAW; - wndClass.lpfnWndProc = (WNDPROC)VCP_UI_FileCopyWndProc; + wndClass.lpfnWndProc = VCP_UI_FileCopyWndProc; wndClass.cbClsExtra = 0; wndClass.cbWndExtra = 0; wndClass.hCursor = LoadCursorA (0, (LPSTR)IDC_ARROW); diff --git a/dlls/shell32/shlview.c b/dlls/shell32/shlview.c index 9d291a5c0fd..8a20d2bb854 100644 --- a/dlls/shell32/shlview.c +++ b/dlls/shell32/shlview.c @@ -1819,7 +1819,7 @@ static HRESULT WINAPI IShellView_fnCreateViewWindow( { ZeroMemory(&wc, sizeof(wc)); wc.style = CS_HREDRAW | CS_VREDRAW; - wc.lpfnWndProc = (WNDPROC) ShellView_WndProc; + wc.lpfnWndProc = ShellView_WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = shell32_hInstance; diff --git a/dlls/shell32/systray.c b/dlls/shell32/systray.c index fe490f5d45c..1568289a4ad 100644 --- a/dlls/shell32/systray.c +++ b/dlls/shell32/systray.c @@ -162,7 +162,7 @@ BOOL SYSTRAY_RegisterClass(void) WNDCLASSA wc; wc.style = CS_SAVEBITS|CS_DBLCLKS; - wc.lpfnWndProc = (WNDPROC)SYSTRAY_WndProc; + wc.lpfnWndProc = SYSTRAY_WndProc; wc.cbClsExtra = 0; wc.cbWndExtra = 0; wc.hInstance = 0; diff --git a/dlls/user/tests/input.c b/dlls/user/tests/input.c index 0b5373370de..e728913a5df 100644 --- a/dlls/user/tests/input.c +++ b/dlls/user/tests/input.c @@ -344,7 +344,7 @@ START_TEST(input) wclass.lpszClassName = "InputSysKeyTestClass"; wclass.style = CS_HREDRAW | CS_VREDRAW; - wclass.lpfnWndProc = (WNDPROC)WndProc; + wclass.lpfnWndProc = WndProc; wclass.hInstance = hInstance; wclass.hIcon = LoadIconA( 0, (LPSTR)IDI_APPLICATION ); wclass.hCursor = LoadCursorA( NULL, IDC_ARROW); diff --git a/programs/rundll32/rundll32.c b/programs/rundll32/rundll32.c index 26306ac1b1a..0b77979e6be 100644 --- a/programs/rundll32/rundll32.c +++ b/programs/rundll32/rundll32.c @@ -68,7 +68,7 @@ static ATOM MyRegisterClass(HINSTANCE hInstance) wcex.cbSize = sizeof(WNDCLASSEX); wcex.style = CS_HREDRAW | CS_VREDRAW; - wcex.lpfnWndProc = (WNDPROC)DefWindowProc; + wcex.lpfnWndProc = DefWindowProc; wcex.cbClsExtra = 0; wcex.cbWndExtra = 0; wcex.hInstance = hInstance; diff --git a/programs/view/init.c b/programs/view/init.c index 760cd403b82..58a0abffab6 100644 --- a/programs/view/init.c +++ b/programs/view/init.c @@ -48,7 +48,7 @@ BOOL InitApplication(HINSTANCE hInstance) 0); wc.style = CS_HREDRAW | CS_VREDRAW; /* Class style(s) */ - wc.lpfnWndProc = (WNDPROC)WndProc; /* Window Procedure */ + wc.lpfnWndProc = WndProc; /* Window Procedure */ wc.cbClsExtra = 0; /* No per-class extra data */ wc.cbWndExtra = 0; /* No per-window extra data */ wc.hInstance = hInstance; /* Owner of this class */