commit | c5711b4689e7c0b8095f7a46b90115a3fb0955c9 | [log] [tgz] |
---|---|---|
author | Ulrich Weigand <weigand@informatik.uni-erlangen.de> | Sat Jul 10 11:45:12 1999 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Sat Jul 10 11:45:12 1999 +0000 |
tree | 3964e13d3a342558b04f542c26be055b57674966 | |
parent | 74dec7a0f0a33f13bedbc893e73fd1d61a984df6 [diff] |
Bugfix: correctly cope with end > 0xfffe.
diff --git a/memory/local.c b/memory/local.c index eed1a4b..607e7b6 100644 --- a/memory/local.c +++ b/memory/local.c
@@ -355,6 +355,7 @@ DWORD size = GlobalSize16( GlobalHandle16( selector ) ); start = (WORD)(size > 0xffff ? 0xffff : size) - 1; + if ( end > 0xfffe ) end = 0xfffe; start -= end; end += start;