dlls/user/button.c - fix AUTO3STATE with BS_OWNERDRAW (Resend)
Alexandre Julliard
julliard at winehq.org
Mon Mar 21 06:00:06 CST 2005
Michael Lin <mlin at corvu.com.au> writes:
> inline static UINT get_button_type( LONG window_style )
> {
> - return (window_style & 0x0f);
> + if ((window_style & BS_OWNERDRAW) == BS_OWNERDRAW)
> + return BS_OWNERDRAW;
> + else
> + return (window_style & 0x0f);
BS_OWNERDRAW is not a bit mask, this won't work right. What is the
problem you are trying to fix?
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list