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