Page 1 of 1

Little bug in TWBrowse

PostPosted: Wed Feb 08, 2006 4:56 pm
by Enrico Maria Giordano
In the function wBrwLine() there are

hOld = SelectObject( hBrush )

and

SelectObject( hOld )

while they should be

hOld = SelectObject( hDC, hBrush )

and

SelectObject( hDC, hOld )

EMG

PostPosted: Fri Feb 10, 2006 8:09 pm
by James Bott
Enrico,

Could you explain what that bug is causing or not causing?

James

PostPosted: Fri Feb 10, 2006 10:56 pm
by Enrico Maria Giordano
It's hard to say. The wrong handle is passed to SelectObject() API. At least the brush is just not activated. At worst we have a resource leak or similar unpleasant effects.

EMG

PostPosted: Sat Feb 11, 2006 5:56 pm
by Antonio Linares
Enrico,

Fixed. Thanks,