forked from KolibriOS/kolibrios
bugfix in sysfn 67: avoid system crash for invalid parameter
git-svn-id: svn://kolibrios.org@856 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -3018,12 +3018,14 @@ sys_set_window:
|
||||
add eax,100
|
||||
mov [new_window_starting],eax
|
||||
|
||||
mov word[edi+WDATA.box.width],bx
|
||||
mov word[edi+WDATA.box.height],cx
|
||||
movsx eax,bx
|
||||
mov [edi+WDATA.box.width],eax
|
||||
movsx eax,cx
|
||||
mov [edi+WDATA.box.height],eax
|
||||
sar ebx,16
|
||||
sar ecx,16
|
||||
mov word[edi+WDATA.box.left],bx
|
||||
mov word[edi+WDATA.box.top],cx
|
||||
mov [edi+WDATA.box.left],ebx
|
||||
mov [edi+WDATA.box.top],ecx
|
||||
|
||||
call check_window_position
|
||||
|
||||
|
Reference in New Issue
Block a user