Commit 9dea5b3a authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

Fixed handling of -1 itemid in WM_DRAWITEM.

parent 3953614b
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment