diff --git a/dlls/advpack/files.c b/dlls/advpack/files.c index c34f6d566cc..a1d52f8ace4 100644 --- a/dlls/advpack/files.c +++ b/dlls/advpack/files.c @@ -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)