shlwapi: PathCreateFromUrlA() should not crash when given NULL buffers.

Alexandre Julliard julliard at winehq.org
Tue Sep 25 07:03:47 CDT 2012


Francois Gouget <fgouget at codeweavers.com> writes:

> Add NULL and insufficient buffer tests for PathCreateFromUrl().
> ---
>  dlls/shlwapi/path.c       |    3 +++
>  dlls/shlwapi/tests/path.c |   49 +++++++++++++++++++++++++++++----------------
>  2 files changed, 35 insertions(+), 17 deletions(-)

It doesn't work here:

../../../tools/runtest -q -P wine -M shlwapi.dll -T ../../.. -p shlwapi_test.exe.so path.c && touch path.ok
path.c:322: Test succeeded inside todo block: got len = 22 expected 22 from url file:///localhost/c:/foo/bar
path.c:322: Test succeeded inside todo block: got len = 19 expected 19 from url file://host//c:/foo/bar
make: *** [path.ok] Error 2

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list