Fixed handling of -1 itemid in WM_DRAWITEM.

This commit is contained in:
Gerard Patel 2001-11-12 15:48:20 +00:00 committed by Alexandre Julliard
parent 3953614bbd
commit 9dea5b3ac8
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ static LRESULT CFn_WMDrawItem(HWND hDlg, WPARAM wParam, LPARAM lParam)
#endif
LPDRAWITEMSTRUCT lpdi = (LPDRAWITEMSTRUCT)lParam;
if (lpdi->itemID == 0xFFFF) /* got no items */
if (lpdi->itemID == (UINT)-1) /* got no items */
DrawFocusRect(lpdi->hDC, &lpdi->rcItem);
else
{