Zebediah Figura : storage.dll16: Fix get_nth_next_small_blocknr.
Alexandre Julliard
julliard at winehq.org
Fri Feb 24 14:48:09 CST 2017
Module: wine
Branch: master
Commit: e3781c84ab24772b84dc8e0f9e92581ba44c1daa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e3781c84ab24772b84dc8e0f9e92581ba44c1daa
Author: Zebediah Figura <z.figura12 at gmail.com>
Date: Thu Feb 23 13:34:07 2017 -0600
storage.dll16: Fix get_nth_next_small_blocknr.
Dividing the initial value of -1 by 128 yields 0, causing the
assertion to fail whenever the function is called with nr > 0 and
blocknr < 128.
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/storage.dll16/storage.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/storage.dll16/storage.c b/dlls/storage.dll16/storage.c
index 5969333..865411f 100644
--- a/dlls/storage.dll16/storage.c
+++ b/dlls/storage.dll16/storage.c
@@ -600,7 +600,7 @@ STORAGE_get_next_small_blocknr(stream_access16 *str,int blocknr) {
*/
static int
STORAGE_get_nth_next_small_blocknr(stream_access16*str,int blocknr,int nr) {
- int lastblocknr=-1;
+ int lastblocknr=-129;
BYTE block[BIGSIZE];
LPINT sbd = (LPINT)block;
struct storage_header sth;
More information about the wine-cvs
mailing list