user32: Add check for the need to redraw static control after STM_SETIMAGE and STM_SETICON
Nikolay Sivov
bunglehead at gmail.com
Sat Sep 26 03:09:30 CDT 2009
Ilya Shpigor wrote:
> Hi,
>
> This patch fix the redrawing static controls after the processing STM_SETIMAGE
> and STM_SETICON messages with errors.
>
---
+ if ((style & SS_TYPEMASK) != SS_ICON) return (HICON)-1;
...
+ if ((style & SS_TYPEMASK) != SS_BITMAP) return (HBITMAP)-1;
...
+ if ((style & SS_TYPEMASK) != SS_ENHMETAFILE) return (HENHMETAFILE)-1;
---
Add tests for that please (MSDN tells about 0 return value on error).
More information about the wine-devel
mailing list