Owen Rudge orudge@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.
On 14/05/2012 11:43, Alexandre Julliard wrote:
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.
OK; it's perhaps not a bug in that case. I believe my patch is still functionally correct; would you like me to resubmit it to modify/remove the comments referring to it being a 'bug'?
Cheers,
Owen Rudge owen@owenrudge.net writes:
On 14/05/2012 11:43, Alexandre Julliard wrote:
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.
OK; it's perhaps not a bug in that case. I believe my patch is still functionally correct; would you like me to resubmit it to modify/remove the comments referring to it being a 'bug'?
Yes please.