setupapi: Avoid useless initializations in SetupIterateCabinetA/W.
This commit is contained in:
parent
b9a13d6d81
commit
7057637ff0
|
@ -566,10 +566,6 @@ BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved,
|
|||
if (!LoadCABINETDll())
|
||||
return FALSE;
|
||||
|
||||
memset(&my_hsc, 0, sizeof(SC_HSC_A));
|
||||
pszCabinet[0] = '\0';
|
||||
pszCabPath[0] = '\0';
|
||||
|
||||
fpnsize = strlen(CabinetFile);
|
||||
if (fpnsize >= MAX_PATH) {
|
||||
SetLastError(ERROR_BAD_PATHNAME);
|
||||
|
@ -633,8 +629,6 @@ BOOL WINAPI SetupIterateCabinetW(PCWSTR CabinetFile, DWORD Reserved,
|
|||
|
||||
if (!CabinetFile) return FALSE;
|
||||
|
||||
memset(&my_hsc, 0, sizeof(SC_HSC_W));
|
||||
|
||||
fpnsize = GetFullPathNameW(CabinetFile, MAX_PATH, pszCabPathW, &p);
|
||||
if (fpnsize > MAX_PATH) {
|
||||
SetLastError(ERROR_BAD_PATHNAME);
|
||||
|
|
Loading…
Reference in New Issue