Owen Rudge <oru...@codeweavers.com> writes:

> There appears to be a bug in the GetUserObjectInformationA function on
> Windows that results in an incorrect buffer length being returned when
> the buffer size provided by the caller is insufficient. The 'A'
> function returns the Unicode length instead of the ANSI length. These
> patches modify Wine's behaviour to provide that incorrect
> behaviour. They also fix an issue whereby the wrong error code is set
> when the buffer is too short.

Using the number of Unicode chars multiplied by 2 is a reasonable upper
bound on the A string size, and it's used in a number of places. This
can't really be considered a Windows bug.

-- 
Alexandre Julliard
julli...@winehq.org


Reply via email to