[USER32][SCRNSAVE]
authorThomas Faber <thomas.faber@reactos.org>
Sat, 11 Oct 2014 12:34:25 +0000 (12:34 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sat, 11 Oct 2014 12:34:25 +0000 (12:34 +0000)
- Remove broken casts

svn path=/trunk/; revision=64662

reactos/lib/sdk/scrnsave/scrnsave.c
reactos/win32ss/user/user32/misc/desktop.c
reactos/win32ss/user/user32/windows/dialog.c
reactos/win32ss/user/user32/windows/menu.c

index fddc48a..e294a45 100644 (file)
@@ -144,7 +144,7 @@ static BOOL RegisterScreenSaverClass(void)
     cls.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
     cls.hInstance = hMainInstance;
     cls.style = CS_VREDRAW | CS_HREDRAW | CS_SAVEBITS | CS_PARENTDC;
-    cls.lpfnWndProc = (WNDPROC)SysScreenSaverProc;
+    cls.lpfnWndProc = SysScreenSaverProc;
 
     return RegisterClass(&cls) != 0;
 }
index ff22610..b32c9d5 100644 (file)
@@ -22,7 +22,7 @@ const struct builtin_class_descr DESKTOP_builtin_class =
   WC_DESKTOP,           /* name */
   CS_DBLCLKS,           /* style */
   NULL,                 /* procA (winproc is Unicode only) */
-  (WNDPROC) DesktopWndProc,       /* procW */
+  DesktopWndProc,       /* procW */
   0,                    /* extra */
   IDC_ARROW,            /* cursor */
   (HBRUSH)(COLOR_BACKGROUND+1)    /* brush */
index c232a38..48304d1 100644 (file)
@@ -115,8 +115,8 @@ const struct builtin_class_descr DIALOG_builtin_class =
 {
     WC_DIALOG,       /* name */
     CS_SAVEBITS | CS_DBLCLKS, /* style  */
-    (WNDPROC) DefDlgProcA,    /* procA */
-    (WNDPROC) DefDlgProcW,    /* procW */
+    DefDlgProcA,              /* procA */
+    DefDlgProcW,              /* procW */
     DLGWINDOWEXTRA,           /* extra */
     (LPCWSTR) IDC_ARROW,      /* cursor */
     0                         /* brush */
index 115719d..0311153 100644 (file)
@@ -107,8 +107,8 @@ const struct builtin_class_descr POPUPMENU_builtin_class =
 {
     WC_MENU,                     /* name */
     CS_SAVEBITS | CS_DBLCLKS,                  /* style  */
-    (WNDPROC) NULL,                            /* FIXME - procA */
-    (WNDPROC) PopupMenuWndProcW,               /* FIXME - procW */
+    NULL,                                      /* FIXME - procA */
+    PopupMenuWndProcW,                         /* FIXME - procW */
     sizeof(MENUINFO *),                        /* extra */
     (LPCWSTR) IDC_ARROW,                       /* cursor */
     (HBRUSH)(COLOR_MENU + 1)                   /* brush */