Rob Shearman : ole32: Remove dead code in StorageImpl_LoadFileHeader.
Alexandre Julliard
julliard at winehq.org
Mon Aug 18 10:47:29 CDT 2008
Module: wine
Branch: master
Commit: 23bb94c005bbc25d5ae1532e95c6534b30f6e842
URL: http://source.winehq.org/git/wine.git/?a=commit;h=23bb94c005bbc25d5ae1532e95c6534b30f6e842
Author: Rob Shearman <robertshearman at gmail.com>
Date: Sun Aug 17 18:34:04 2008 +0100
ole32: Remove dead code in StorageImpl_LoadFileHeader.
---
dlls/ole32/storage32.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/dlls/ole32/storage32.c b/dlls/ole32/storage32.c
index 565146b..663ff4f 100644
--- a/dlls/ole32/storage32.c
+++ b/dlls/ole32/storage32.c
@@ -3139,16 +3139,8 @@ static HRESULT StorageImpl_LoadFileHeader(
/*
* Make the bitwise arithmetic to get the size of the blocks in bytes.
*/
- if ((1 << 2) == 4)
- {
- This->bigBlockSize = 0x000000001 << (DWORD)This->bigBlockSizeBits;
- This->smallBlockSize = 0x000000001 << (DWORD)This->smallBlockSizeBits;
- }
- else
- {
- This->bigBlockSize = 0x000000001 >> (DWORD)This->bigBlockSizeBits;
- This->smallBlockSize = 0x000000001 >> (DWORD)This->smallBlockSizeBits;
- }
+ This->bigBlockSize = 0x000000001 << (DWORD)This->bigBlockSizeBits;
+ This->smallBlockSize = 0x000000001 << (DWORD)This->smallBlockSizeBits;
/*
* Right now, the code is making some assumptions about the size of the
More information about the wine-cvs
mailing list