Ken Thomases : dbghelp: Increase file read buffer size for calc_crc32.

Alexandre Julliard julliard at winehq.org
Thu Mar 12 09:54:34 CDT 2009


Module: wine
Branch: master
Commit: df0f32bbd953544aa7a3e55010d9b7d9993dfcc0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=df0f32bbd953544aa7a3e55010d9b7d9993dfcc0

Author: Ken Thomases <ken at codeweavers.com>
Date:   Wed Mar 11 09:09:07 2009 -0500

dbghelp: Increase file read buffer size for calc_crc32.

---

 dlls/dbghelp/crc32.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/dbghelp/crc32.c b/dlls/dbghelp/crc32.c
index 21333ac..f07bf42 100644
--- a/dlls/dbghelp/crc32.c
+++ b/dlls/dbghelp/crc32.c
@@ -136,7 +136,7 @@ DWORD calc_crc32(int fd)
         0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
     };
     int                 i, r;
-    unsigned char       buffer[256];
+    unsigned char       buffer[8192];
     DWORD               crc = ~0;
 
     lseek(fd, 0, SEEK_SET);




More information about the wine-cvs mailing list