Commit ad3a5ed5 authored by Mike McCormack's avatar Mike McCormack Committed by Alexandre Julliard

Make sure a cursor is always returned if one exists.

parent a5156dcf
...@@ -583,8 +583,8 @@ static int CURSORICON_FindBestCursor( LPVOID dir, fnGetCIEntry get_entry, ...@@ -583,8 +583,8 @@ static int CURSORICON_FindBestCursor( LPVOID dir, fnGetCIEntry get_entry,
maxwidth = maxheight = 255; maxwidth = maxheight = 255;
for ( i = 0; get_entry( dir, i, &cx, &cy, &bits ); i++ ) for ( i = 0; get_entry( dir, i, &cx, &cy, &bits ); i++ )
{ {
if ((cx < maxwidth) && (cy < maxheight) && if (((cx < maxwidth) && (cy < maxheight) && (bits == 1)) ||
(bits == 1)) (bestEntry==-1))
{ {
bestEntry = i; bestEntry = i;
maxwidth = cx; maxwidth = cx;
......
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