mmio

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Wed Sep 7 14:36:03 CDT 2005


We just checked if ix < 2*sizeof(DWORD). We don't need to do it again right
after. This is just a very minor clean-up.

ChangeLog:
    Ulrich Czekalla <uczekalla at codeweavers.com>
    Remove redundant check
-------------- next part --------------
Index: dlls/winmm/mmio.c
===================================================================
RCS file: /home/wine/wine/dlls/winmm/mmio.c,v
retrieving revision 1.49
diff -u -p -r1.49 mmio.c
--- dlls/winmm/mmio.c	27 Apr 2005 08:12:58 -0000	1.49
+++ dlls/winmm/mmio.c	7 Sep 2005 19:31:55 -0000
@@ -1195,11 +1195,6 @@ MMRESULT WINAPI mmioDescend(HMMIO hmmio,
 		return MMIOERR_CHUNKNOTFOUND;
 	    }
 	    lpck->dwDataOffset = dwOldPos + 2 * sizeof(DWORD);
-	    if (ix < lpck->dwDataOffset - dwOldPos) {
-		mmioSeek(hmmio, dwOldPos, SEEK_SET);
-		WARN("return ChunkNotFound\n");
-		return MMIOERR_CHUNKNOTFOUND;
-	    }
 	    TRACE("ckid=%.4s fcc=%.4s cksize=%08lX !\n",
 		  (LPSTR)&lpck->ckid,
 		  srchType?(LPSTR)&lpck->fccType:"<na>",


More information about the wine-patches mailing list