Author: cwittich Date: Sun Jan 21 19:04:17 2007 New Revision: 25556
URL: http://svn.reactos.org/svn/reactos?rev=25556&view=rev Log: fix some warnings (gcc 4.2)
Modified: trunk/reactos/base/applications/taskmgr/proclist.c trunk/reactos/base/applications/testsets/smss/movefile/movefile.cpp trunk/reactos/base/setup/welcome/welcome.c
Modified: trunk/reactos/base/applications/taskmgr/proclist.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/taskmgr/p... ============================================================================== --- trunk/reactos/base/applications/taskmgr/proclist.c (original) +++ trunk/reactos/base/applications/taskmgr/proclist.c Sun Jan 21 19:04:17 2007 @@ -72,10 +72,13 @@ * subtract it from our clip rect because we don't * use icons in this list control. */ - (void)ListView_GetItemRect(hWnd, 0, &rcClip, LVIR_BOUNDS); - (void)ListView_GetItemRect(hWnd, ListView_GetItemCount(hWnd) - 1, &rcItem, LVIR_BOUNDS); - rcClip.bottom = rcItem.bottom; - (void)ListView_GetItemRect(hWnd, 0, &rcItem, LVIR_ICON); + rcClip.left = LVIR_BOUNDS; + SendMessage(hWnd, LVM_GETITEMRECT, 0, (LPARAM)&rcClip); + rcClip.left = LVIR_BOUNDS; + SendMessage(hWnd, LVM_GETITEMRECT, ListView_GetItemCount(hWnd) - 1, (LPARAM)&rcItem); + rcClip.bottom = rcItem.bottom; + rcClip.left = LVIR_ICON; + SendMessage(hWnd, LVM_GETITEMRECT, 0, (LPARAM)&rcItem); rcClip.left = rcItem.right;
/*
Modified: trunk/reactos/base/applications/testsets/smss/movefile/movefile.cpp URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/testsets/... ============================================================================== --- trunk/reactos/base/applications/testsets/smss/movefile/movefile.cpp (original) +++ trunk/reactos/base/applications/testsets/smss/movefile/movefile.cpp Sun Jan 21 19:04:17 2007 @@ -85,11 +85,11 @@ HANDLE hFile = NULL; BOOL fReturnValue;
- char *szxReplacedFile = "c:\testFileIsReplaced"; - char *szxMovedFileWithRepl = "c:\testFileShouldBeMovedW"; - char *szxMovedFile = "c:\testFileShouldBeMoved"; - char *szxNewMovedFile = "c:\testFileIsMoved"; - char *szxDeletedFile = "c:\testFileShouldBeDeleted"; + const char szxReplacedFile[] = "c:\testFileIsReplaced"; + const char szxMovedFileWithRepl[] = "c:\testFileShouldBeMovedW"; + const char szxMovedFile[] = "c:\testFileShouldBeMoved"; + const char szxNewMovedFile[] = "c:\testFileIsMoved"; + const char szxDeletedFile[] = "c:\testFileShouldBeDeleted";
memset(sBuf, 0xaa, sizeof(sBuf));
Modified: trunk/reactos/base/setup/welcome/welcome.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/welcome/welcome.... ============================================================================== --- trunk/reactos/base/setup/welcome/welcome.c (original) +++ trunk/reactos/base/setup/welcome/welcome.c Sun Jan 21 19:04:17 2007 @@ -129,7 +129,7 @@ wndclass.cbWndExtra = 0; wndclass.hInstance = hInstance; wndclass.hIcon = hMainIcon; - wndclass.hCursor = LoadCursor (NULL, MAKEINTRESOURCE(IDC_ARROW)); + wndclass.hCursor = LoadCursor (NULL, IDC_ARROW); wndclass.hbrBackground = 0; wndclass.lpszMenuName = NULL; wndclass.lpszClassName = szFrameClass;