shell32/tests: Remove null check after dereference (Coverity).

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Nikolay Sivov 2017-05-24 12:21:27 +03:00 committed by Alexandre Julliard
parent 0c9de25955
commit 4270c08cd7
1 changed files with 2 additions and 5 deletions

View File

@ -1447,11 +1447,8 @@ static void test_SHCreateShellFolderViewEx(void)
ok(unk == (IUnknown *)psv, "got %p\n", unk);
IUnknown_Release(unk);
if (psv)
{
refCount = IShellView_Release(psv);
ok(refCount == 0, "refCount = %u\n", refCount);
}
refCount = IShellView_Release(psv);
ok(refCount == 0, "refCount = %u\n", refCount);
if (0)
{