Module: wine Branch: refs/heads/master Commit: 2f5293fd3cf78759d906df691da23f0d35a02c4d URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=2f5293fd3cf78759d906df69...
Author: Mike McCormack mike@codeweavers.com Date: Fri Mar 17 18:37:23 2006 +0900
taskmgr: Fix some gcc 4.1 warnings.
---
programs/taskmgr/proclist.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/programs/taskmgr/proclist.c b/programs/taskmgr/proclist.c index c21cdca..7552ab1 100644 --- a/programs/taskmgr/proclist.c +++ b/programs/taskmgr/proclist.c @@ -82,10 +82,14 @@ LRESULT CALLBACK ProcessListWndProc(HWND * subtract it from our clip rect because we don't * use icons in this list control. */ - ListView_GetItemRect(hWnd, 0, &rcClip, LVIR_BOUNDS); - ListView_GetItemRect(hWnd, ListView_GetItemCount(hWnd) - 1, &rcItem, LVIR_BOUNDS); + rcClip.left = LVIR_BOUNDS; + SendMessage(hWnd, LVM_GETITEMRECT, 0, (LPARAM) &rcClip); + rcItem.left = LVIR_BOUNDS; + SendMessage(hWnd, LVM_GETITEMRECT, ListView_GetItemCount(hWnd) - 1, (LPARAM) &rcItem); + rcClip.bottom = rcItem.bottom; - ListView_GetItemRect(hWnd, 0, &rcItem, LVIR_ICON); + rcItem.left = LVIR_ICON; + SendMessage(hWnd, LVM_GETITEMRECT, 0, (LPARAM) &rcItem); rcClip.left = rcItem.right;
/*