Bugfix: correctly cope with end > 0xfffe.
This commit is contained in:
parent
74dec7a0f0
commit
c5711b4689
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue