advpack: Avoid using sessions uninitialized (Coverity).
This commit is contained in:
parent
3173f17315
commit
a6e4c094d0
|
@ -708,6 +708,8 @@ HRESULT WINAPI ExtractFilesA(LPCSTR CabName, LPCSTR ExpandDir, DWORD Flags,
|
|||
if (!hCabinet)
|
||||
return E_FAIL;
|
||||
|
||||
ZeroMemory(&session, sizeof(SESSION));
|
||||
|
||||
pExtract = (void *)GetProcAddress(hCabinet, "Extract");
|
||||
if (!pExtract)
|
||||
{
|
||||
|
@ -715,7 +717,6 @@ HRESULT WINAPI ExtractFilesA(LPCSTR CabName, LPCSTR ExpandDir, DWORD Flags,
|
|||
goto done;
|
||||
}
|
||||
|
||||
ZeroMemory(&session, sizeof(SESSION));
|
||||
lstrcpyA(session.Destination, ExpandDir);
|
||||
|
||||
if (FileList)
|
||||
|
|
Loading…
Reference in New Issue