cabinet: Remove unneeded casts

Andrew Talbot andrew.talbot at talbotville.com
Wed Dec 5 15:28:30 CST 2007


Changelog:
    cabinet: Remove unneeded casts.

diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c
index b0774c0..55c219d 100644
--- a/dlls/cabinet/fci.c
+++ b/dlls/cabinet/fci.c
@@ -188,7 +188,7 @@ HFCI __cdecl FCICreate(
     return NULL;
   }
 
-  if (!((hfci = ((HFCI) (*pfnalloc)(sizeof(FCI_Int)))))) {
+  if (!((hfci = (*pfnalloc)(sizeof(FCI_Int))))) {
     perf->erfOper = FCIERR_ALLOC_FAIL;
     perf->erfType = ERROR_NOT_ENOUGH_MEMORY;
     perf->fError = TRUE;
diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index a522b86..91e2daf 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -377,7 +377,7 @@ HFDI __cdecl FDICreate(
     return NULL;
   }
 
-  if (!((rv = ((HFDI) (*pfnalloc)(sizeof(FDI_Int)))))) {
+  if (!((rv = (*pfnalloc)(sizeof(FDI_Int))))) {
     perf->erfOper = FDIERROR_ALLOC_FAIL;
     perf->erfType = ERROR_NOT_ENOUGH_MEMORY;
     perf->fError = TRUE;



More information about the wine-patches mailing list