fix some warnings (gcc 4.2)

svn path=/trunk/; revision=25556
This commit is contained in:
Christoph von Wittich 2007-01-21 16:04:17 +00:00
parent 41e6dfed9c
commit b4483383d1
3 changed files with 13 additions and 10 deletions

View file

@ -72,10 +72,13 @@ ProcessListWndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
* 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;
/*

View file

@ -85,11 +85,11 @@ int Generate()
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));

View file

@ -129,7 +129,7 @@ WinMain(HINSTANCE hInst,
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;