cabinet: Fix the second parameter name of Extract.

This commit is contained in:
James Hawkins 2006-01-09 20:23:26 +01:00 committed by Alexandre Julliard
parent d57c20ac95
commit f9859a88d3
1 changed files with 4 additions and 4 deletions

View File

@ -80,13 +80,13 @@ HRESULT WINAPI DllGetVersion (DLLVERSIONINFO *pdvi)
* CAB file at idx 0x10 * CAB file at idx 0x10
* - the number of files inside the CAB file at index 0x14 * - the number of files inside the CAB file at index 0x14
* - the name of the last file with dest path at idx 0x120 * - the name of the last file with dest path at idx 0x120
* what [I] char* describing what to uncompress, I guess. * szCabName [I] Filename of the cabinet to extract.
* *
* RETURNS * RETURNS
* Success: S_OK * Success: S_OK
* Failure: E_OUTOFMEMORY (?) * Failure: E_OUTOFMEMORY (?)
*/ */
HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what) HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR szCabName)
{ {
#define DUMPC(idx) idx >= sizeof(EXTRACTdest) ? ' ' : \ #define DUMPC(idx) idx >= sizeof(EXTRACTdest) ? ' ' : \
((unsigned char*) dest)[idx] >= 0x20 ? \ ((unsigned char*) dest)[idx] >= 0x20 ? \
@ -97,7 +97,7 @@ HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what)
LPSTR dir; LPSTR dir;
unsigned int i; unsigned int i;
TRACE("(dest == %0lx, what == %s)\n", (long) dest, debugstr_a(what)); TRACE("(dest == %0lx, szCabName == %s)\n", (long) dest, debugstr_a(szCabName));
if (!dest) { if (!dest) {
/* win2k will crash here */ /* win2k will crash here */
@ -121,7 +121,7 @@ HRESULT WINAPI Extract(EXTRACTdest *dest, LPCSTR what)
TRACE("extracting to dir: %s\n", debugstr_a(dir)); TRACE("extracting to dir: %s\n", debugstr_a(dir));
/* FIXME: what to do on failure? */ /* FIXME: what to do on failure? */
if (!process_cabinet(what, dir, FALSE, FALSE, dest)) { if (!process_cabinet(szCabName, dir, FALSE, FALSE, dest)) {
LocalFree(dir); LocalFree(dir);
return E_OUTOFMEMORY; return E_OUTOFMEMORY;
} }