setupapi: Avoid useless initializations in SetupIterateCabinetA/W.
authorAndrew Nguyen <anguyen@codeweavers.com>
Tue, 15 Jun 2010 10:20:08 +0000 (05:20 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 16 Jun 2010 18:11:51 +0000 (20:11 +0200)
dlls/setupapi/setupcab.c

index d879f9da9a046714694839c2d1f1eb5915496dac..0dd2d86b5a357841ce477f1417b60e5c10c628aa 100644 (file)
@@ -563,13 +563,9 @@ BOOL WINAPI SetupIterateCabinetA(PCSTR CabinetFile, DWORD Reserved,
   TRACE("(CabinetFile == %s, Reserved == %u, MsgHandler == ^%p, Context == ^%p)\n",
         debugstr_a(CabinetFile), Reserved, MsgHandler, Context);
 
-  if (! LoadCABINETDll()) 
+  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);