Ricardo Filipe : cabinet: Fix dead stores (llvm/clang).
Alexandre Julliard
julliard at winehq.org
Tue Nov 18 09:27:15 CST 2008
Module: wine
Branch: master
Commit: 1a12aace576ad0a1ed3f17498d3e015bd98595e8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1a12aace576ad0a1ed3f17498d3e015bd98595e8
Author: Ricardo Filipe <ricardo_barbano at hotmail.com>
Date: Wed Nov 12 22:50:09 2008 +0000
cabinet: Fix dead stores (llvm/clang).
---
dlls/cabinet/fci.c | 2 +-
dlls/cabinet/fdi.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/cabinet/fci.c b/dlls/cabinet/fci.c
index ea745a6..ed413f8 100644
--- a/dlls/cabinet/fci.c
+++ b/dlls/cabinet/fci.c
@@ -462,7 +462,7 @@ static cab_ULONG fci_get_checksum(const void *pv, UINT cb, CHECKSUM seed)
case 2:
ul |= (((ULONG)(*pb++)) << 8);
case 1:
- ul |= *pb++;
+ ul |= *pb;
default:
break;
}
diff --git a/dlls/cabinet/fdi.c b/dlls/cabinet/fdi.c
index 0825162..09d0fe7 100644
--- a/dlls/cabinet/fdi.c
+++ b/dlls/cabinet/fdi.c
@@ -2830,7 +2830,7 @@ BOOL __cdecl FDICopy(
if (file->offset > CAB(offset)) {
/* decode bytes and send them to /dev/null */
- switch ((err = fdi_decomp(file, 0, decomp_state, pszCabPath, pfnfdin, pvUser))) {
+ switch (fdi_decomp(file, 0, decomp_state, pszCabPath, pfnfdin, pvUser)) {
case DECR_OK:
break;
case DECR_USERABORT:
More information about the wine-cvs
mailing list