Resent^2 : Zero out return string in GetMenuStr

Alexandre Julliard julliard at winehq.org
Tue Mar 29 13:20:23 CST 2005


Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:

> Alexandre,
> 
> also before, there was a NULL written to position Zero of the
> string. However there where some checks and function calls that could
> return Zero but didn't touch the string. Now there is only a check 
> that the argument is a pointer before the Null is written. What should be
> done in another way?

The existing code checks nMaxSiz before writing, you should do the
same.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list