[PATCH] combase: Fix cornercase error handling in WindowsCreateStringReference

Sebastian Lackner sebastian at fds-team.de
Thu Oct 29 04:03:08 CDT 2015


On 29.10.2015 09:21, Martin Storsjo wrote:
> When WindowsCreateStringReference is given a non-null input string,
> the input string must be null terminated at the given length,
> even if the input length is zero.
> 
> This behaviour was changed in a20e75432, which on the other hand
> fixed crashes with a null input string with a zero length.
> 
> Tests are added for both these cases, and for the same cases
> for WindowsCreateString.
> 
> Signed-off-by: Martin Storsjo <martin at martin.st>
> ---
>  dlls/combase/string.c       |  4 ++--
>  dlls/combase/tests/string.c | 15 +++++++++++++++
>  2 files changed, 17 insertions(+), 2 deletions(-)
> 

Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>




More information about the wine-patches mailing list