[PATCH resend] user16: Fix truncation for 16-bit handles.

Jacek Caban jacek at codeweavers.com
Fri Nov 26 10:34:26 CST 2021


Hi Oleh,

On 11/26/21 10:43 AM, Oleh Nykyforchyn wrote:
> @@ -1670,6 +1673,14 @@ LRESULT WINAPI DefWindowProc16( HWND16 hwnd16, UINT16 msg, WPARAM16 wParam, LPAR
>       case WM_GETTEXT:
>       case WM_SETTEXT:
>           return DefWindowProcA( hwnd, msg, wParam, (LPARAM)MapSL(lParam) );
> +    case WM_CTLCOLOR:
> +        if (HIWORD(lParam) <= CTLCOLOR_STATIC)
> +            return DefWindowProcA( hwnd, WM_CTLCOLORMSGBOX + HIWORD(lParam),
> +                            (WPARAM)HDC_32(wParam), (LPARAM)WIN_Handle32( LOWORD(lParam) ) );
> +        else
> +            return 0;
> +    case WM_ERASEBKGND:
> +        return DefWindowProcA( hwnd, msg, (WPARAM)HDC_32(wParam), lParam );


Maybe we could just use WINPROC_CallProc16To32A for DefWindowProc16 
instead of duplicating it here. Does the attached patch work for you?


Thanks,

Jacek

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 4168 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20211126/e80df2f4/attachment.bin>


More information about the wine-devel mailing list