mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
advpack: Avoid using sessions uninitialized (Coverity).
This commit is contained in:
parent
3173f17315
commit
a6e4c094d0
1 changed files with 2 additions and 1 deletions
|
@ -708,6 +708,8 @@ HRESULT WINAPI ExtractFilesA(LPCSTR CabName, LPCSTR ExpandDir, DWORD Flags,
|
||||||
if (!hCabinet)
|
if (!hCabinet)
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
|
|
||||||
|
ZeroMemory(&session, sizeof(SESSION));
|
||||||
|
|
||||||
pExtract = (void *)GetProcAddress(hCabinet, "Extract");
|
pExtract = (void *)GetProcAddress(hCabinet, "Extract");
|
||||||
if (!pExtract)
|
if (!pExtract)
|
||||||
{
|
{
|
||||||
|
@ -715,7 +717,6 @@ HRESULT WINAPI ExtractFilesA(LPCSTR CabName, LPCSTR ExpandDir, DWORD Flags,
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
ZeroMemory(&session, sizeof(SESSION));
|
|
||||||
lstrcpyA(session.Destination, ExpandDir);
|
lstrcpyA(session.Destination, ExpandDir);
|
||||||
|
|
||||||
if (FileList)
|
if (FileList)
|
||||||
|
|
Loading…
Reference in a new issue