Bugfix: correctly cope with end > 0xfffe.

This commit is contained in:
Ulrich Weigand 1999-07-10 11:45:12 +00:00 committed by Alexandre Julliard
parent 74dec7a0f0
commit c5711b4689

View File

@ -355,6 +355,7 @@ BOOL16 WINAPI LocalInit16( HANDLE16 selector, WORD start, WORD end )
DWORD size = GlobalSize16( GlobalHandle16( selector ) );
start = (WORD)(size > 0xffff ? 0xffff : size) - 1;
if ( end > 0xfffe ) end = 0xfffe;
start -= end;
end += start;