[PATCH v2 4/6] win32u: Move process_sent_messages implementation from user32.

Huw Davies huw at codeweavers.com
Thu Mar 31 08:10:14 CDT 2022


On Thu, Mar 31, 2022 at 10:45:20AM +0200, Jacek Caban wrote:
> diff --git a/dlls/win32u/message.c b/dlls/win32u/message.c
> index 0253eacc152..841ceb85c6d 100644
> --- a/dlls/win32u/message.c
> +++ b/dlls/win32u/message.c

> +/* unpack a potentially 64-bit pointer, returning 0 when truncated */
> +static inline void *unpack_ptr( ULONGLONG ptr64 )
> +{
> +    if ((ULONG_PTR)ptr64 != ptr64) return 0;
> +    return (void *)(ULONG_PTR)ptr64;
> +}
> +
> +/* make sure that the buffer contains a valid null-terminated Unicode string */
> +static inline BOOL check_string( LPCWSTR str, size_t size )
> +{
> +    for (size /= sizeof(WCHAR); size; size--, str++)
> +        if (!*str) return TRUE;
> +    return FALSE;
> +}

Hi Jacek,

These two functions are unused.

Huw.



More information about the wine-devel mailing list