7 Jan
2014
7 Jan
'14
12:54 p.m.
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.