Re: buffer too small for currency

2004-02-24 Thread Alexandre Julliard
Fabian Cenedese <[EMAIL PROTECTED]> writes: > The found value (info->Data) should only be copied to (buffer) if its length (len) > is big enough. len is given in bytes (8 for the above call with a buffer of 4 > WCHARs). > But the length of the data (ret) is in WCHAR units. So the comparison here

Re: buffer too small for currency

2004-02-24 Thread Fabian Cenedese
> Fabian> If I don't hear anything I'll take the easy road and send in a >Fabian> patch :) > >As always, it is a good idea to write a testcase in dlls/kernel/tests to >document this error... Of course, but I can only write a test if I know what to test/what the results should be, that's why

Re: buffer too small for currency

2004-02-24 Thread Uwe Bonnes
> "Fabian" == Fabian Cenedese <[EMAIL PROTECTED]> writes: Fabian> If I don't hear anything I'll take the easy road and send in a Fabian> patch :) As always, it is a good idea to write a testcase in dlls/kernel/tests to document this error... Bye -- Uwe Bonnes[EMAIL P

Re: buffer too small for currency

2004-02-24 Thread Fabian Cenedese
>I get this warning when I try to start a basic program. This comes from the >function VARIANT_GetLocalisedNumberChars. I added some printfs and >found that my currency is apparently "SFr.", so 4 chars plus zero which >is too much for the 4 char buffer. I continued this one too (I don't like unha

buffer too small for currency

2004-02-03 Thread Fabian Cenedese
Hi I get this warning when I try to start a basic program. This comes from the function VARIANT_GetLocalisedNumberChars. I added some printfs and found that my currency is apparently "SFr.", so 4 chars plus zero which is too much for the 4 char buffer. Strange though that on the command line it lo