mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
fix some warnings (gcc 4.2)
svn path=/trunk/; revision=25556
This commit is contained in:
parent
41e6dfed9c
commit
b4483383d1
3 changed files with 13 additions and 10 deletions
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
|
@ -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));
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue