[1/3] user32/tests: Add GetUserObjectInformation tests

Alexandre Julliard julliard at winehq.org
Mon May 14 05:43:42 CDT 2012

Owen Rudge <orudge at 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
julliard at winehq.org

More information about the wine-devel mailing list