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
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
Enrico,
Could you explain what that bug is causing or not causing?
James
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
Enrico,
Fixed. Thanks,