cabinet: Fix compiler warning with flag -Wcast-qual.
authorMikhail Maroukhine <mikolg@yandex.ru>
Sat, 27 Mar 2010 07:48:58 +0000 (13:48 +0600)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 29 Mar 2010 10:12:07 +0000 (12:12 +0200)
dlls/cabinet/fdi.c

index de64f025bd3cb3698dd13227161b7c424284c434..b68ab15acd83a624c95100a3371be4ff6133cbf9 100644 (file)
@@ -77,7 +77,7 @@ THOSE_ZIP_CONSTS;
 
 struct fdi_file {
   struct fdi_file *next;               /* next file in sequence          */
-  LPCSTR filename;                     /* output name of file            */
+  LPSTR filename;                     /* output name of file            */
   int    fh;                           /* open file handle or NULL       */
   cab_ULONG length;                    /* uncompressed length of file    */
   cab_ULONG offset;                    /* uncompressed offset in folder  */
@@ -2301,7 +2301,7 @@ static void free_decompression_mem(HFDI hfdi,
     }
     while (CAB(firstfile)) {
       file = CAB(firstfile);
-      if (file->filename) PFDI_FREE(hfdi, (void *)file->filename);
+      if (file->filename) PFDI_FREE(hfdi, file->filename);
       CAB(firstfile) = CAB(firstfile)->next;
       PFDI_FREE(hfdi, file);
     }