mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 17:33:38 +00:00
advpack+setupapi: Remove unneeded checks before SetupCloseInfFile.
This commit is contained in:
parent
8be4e8537c
commit
6a95b93ec3
|
@ -512,7 +512,6 @@ static HRESULT install_init(LPCWSTR inf_filename, LPCWSTR install_sec,
|
|||
/* release the install instance information */
|
||||
static void install_release(const ADVInfo *info)
|
||||
{
|
||||
if (info->hinf && info->hinf != INVALID_HANDLE_VALUE)
|
||||
SetupCloseInfFile(info->hinf);
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, info->inf_path);
|
||||
|
|
|
@ -167,7 +167,7 @@ static void test_invalid_files(void)
|
|||
ok( hinf != INVALID_HANDLE_VALUE, "file %u: Open failed\n", i );
|
||||
ok( err == 0, "file %u: Error code set to %u\n", i, err );
|
||||
}
|
||||
if (hinf != INVALID_HANDLE_VALUE) SetupCloseInfFile( hinf );
|
||||
SetupCloseInfFile( hinf );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue