shell32/tests: Add test for SHGetPathFromIDListA

Nikolay Sivov bunglehead at gmail.com
Tue Jan 7 06:54:51 CST 2014


On 1/7/2014 16:08, Zhenbo Li wrote:
> I'm working on Bug 33750, so I'll add test cases for 
> SHGetPathFromIDListA gradually.
> ---
>  dlls/shell32/tests/pidl.c | 48 
> +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 48 insertions(+)
>  create mode 100644 dlls/shell32/tests/pidl.c
>
Please use some existing file.
> +void test_SHGetPathFromIDListA(void)
> +{
> +	BOOL ret;
> +	LPCSTR pszPath;
> +	
> +	pszPath = malloc(MAX_PATH);
> +
> +	ret = SHGetPathFromIDListA(NULL, pszPath);
> +    ok(!ret, "SHGetPathFromIDListA should fail.\n");
> +
> +	free((void *)pszPath);
> +}
> +
You don't need to allocate it here, even if had to Heap* functions 
should be used.



More information about the wine-devel mailing list