gdi32: Cast-qual warnings fix (1 of 3)

Alexandre Julliard julliard at winehq.org
Tue Oct 31 05:14:48 CST 2006


Andrew Talbot <Andrew.Talbot at talbotville.com> writes:

> @@ -1779,16 +1779,17 @@
>  
>      if (!lprect)
>          flags &= ~ETO_CLIPPED;
> -        
> +
> +    reordered_str = HeapAlloc(GetProcessHeap(), 0, count * sizeof(WCHAR));
> +    lstrcpynW(reordered_str, str, count);

The input string is not necessarily null-terminated, and in any case
you shouldn't allocate a copy unless it's really necessary.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list