mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[SHELL32_APITEST] Fix PIDL leaks.
This commit is contained in:
parent
d41c5be3bd
commit
cf2b918e0f
3 changed files with 3 additions and 3 deletions
|
@ -76,7 +76,7 @@ VOID TestUninitialized()
|
|||
hr = ppf2->Initialize(testpidl);
|
||||
ok(hr == S_OK, "hr = %lx\n", hr);
|
||||
|
||||
LPITEMIDLIST pidl;
|
||||
CComHeapPtr<ITEMIDLIST> pidl;
|
||||
hr = ppf2->GetCurFolder(&pidl);
|
||||
ok(hr == S_OK, "hr = %lx\n", hr);
|
||||
ok(pidl->mkid.cb == 2 * sizeof(WORD), "got wrong pidl size, cb = %x\n", pidl->mkid.cb);
|
||||
|
|
|
@ -65,7 +65,7 @@ VOID TestInitialize(_In_ IShellFolder2 *psf2)
|
|||
//hr = ppf2->GetCurFolder(NULL);
|
||||
//ok(hr == E_INVALIDARG, "hr = %lx\n", hr);
|
||||
|
||||
LPITEMIDLIST pidl;
|
||||
CComHeapPtr<ITEMIDLIST> pidl;
|
||||
hr = ppf2->GetCurFolder(&pidl);
|
||||
ok(hr == S_OK, "hr = %lx\n", hr);
|
||||
// 0 in win10, 14 in xp
|
||||
|
|
|
@ -205,7 +205,7 @@ VOID TestInitialize(_In_ IShellFolder *psf)
|
|||
//hr = ppf2->GetCurFolder(NULL);
|
||||
//ok(hr == E_INVALIDARG, "hr = %lx\n", hr);
|
||||
|
||||
LPITEMIDLIST pidl;
|
||||
CComHeapPtr<ITEMIDLIST> pidl;
|
||||
hr = ppf2->GetCurFolder(&pidl);
|
||||
ok(hr == S_OK, "hr = %lx\n", hr);
|
||||
ok(pidl->mkid.cb == 0, "expected empty pidl got cb = %x\n", pidl->mkid.cb);
|
||||
|
|
Loading…
Reference in a new issue