diff options
author | Alex Marsev <alex.marsev@gmail.com> | 2013-05-01 14:55:05 +0400 |
---|---|---|
committer | Alex Marsev <alex.marsev@gmail.com> | 2013-05-01 17:36:38 +0400 |
commit | eb2699599760490284157c7ebc57c4f4d9f4e7f9 (patch) | |
tree | bcd7d9cb6d715443086eb4ae8f9751a971c64743 | |
parent | 296235bd212b09fe06ad935b5d7f7062a67c88a0 (diff) |
CPPageExternalFilters: fix a warning
The warning was introduced in d5e3c09
Also assign values to struct members in the order the struct was defined
-rw-r--r-- | src/mpc-hc/PPageExternalFilters.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mpc-hc/PPageExternalFilters.cpp b/src/mpc-hc/PPageExternalFilters.cpp index fa5aefa10..535c810df 100644 --- a/src/mpc-hc/PPageExternalFilters.cpp +++ b/src/mpc-hc/PPageExternalFilters.cpp @@ -47,17 +47,16 @@ void CPPageExternalFiltersListBox::PreSubclassWindow() INT_PTR CPPageExternalFiltersListBox::OnToolHitTest(CPoint point, TOOLINFO* pTI) const
{
BOOL out = FALSE;
- pTI->uId = ItemFromPoint(point, out);
+ UINT item = ItemFromPoint(point, out);
if (out) {
return -1;
}
- CRect r;
- VERIFY(GetItemRect(pTI->uId, r) != LB_ERR);
- pTI->rect = r;
+ pTI->uFlags |= TTF_ALWAYSTIP;
pTI->hwnd = m_hWnd;
+ pTI->uId = item;
+ VERIFY(GetItemRect(item, &pTI->rect) != LB_ERR);
pTI->lpszText = LPSTR_TEXTCALLBACK;
- pTI->uFlags |= TTF_ALWAYSTIP;
return pTI->uId;
}
|