combase: Fix cornercase error handling in WindowsCreateStringReference.
commitbcac15a56f6c10060789ace85ed9730a49f3d001
authorMartin Storsjo <martin@martin.st>
Thu, 29 Oct 2015 08:21:22 +0000 (29 10:21 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 29 Oct 2015 12:20:07 +0000 (29 21:20 +0900)
tree41bf5f94aa2249b55c95b5f3a4fbb685ff6d81a5
parent421b3ca3eb16a3ca254b615f6c7dfc1619c973e7
combase: Fix cornercase error handling in WindowsCreateStringReference.

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.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/combase/string.c
dlls/combase/tests/string.c