forked from KolibriOS/kolibrios
delete APPDATA.mem_start
git-svn-id: svn://kolibrios.org@9710 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
707dc7c2e6
commit
39780d1f65
@ -520,7 +520,7 @@ struct APPDATA
|
|||||||
dw ? ;+126
|
dw ? ;+126
|
||||||
wnd_shape dd ? ;+128
|
wnd_shape dd ? ;+128
|
||||||
wnd_shape_scale dd ? ;+132
|
wnd_shape_scale dd ? ;+132
|
||||||
mem_start dd ? ;+136
|
dd ? ;+136
|
||||||
counter_sum dd ? ;+140 ; R
|
counter_sum dd ? ;+140 ; R
|
||||||
saved_box BOX ;+144
|
saved_box BOX ;+144
|
||||||
ipc_start dd ? ;+160
|
ipc_start dd ? ;+160
|
||||||
|
@ -972,7 +972,6 @@ proc set_app_params stdcall,slot:dword, params:dword, flags:dword
|
|||||||
mov [ebx+SLOT_BASE+APPDATA.cur_dir], eax
|
mov [ebx+SLOT_BASE+APPDATA.cur_dir], eax
|
||||||
rep movsd
|
rep movsd
|
||||||
|
|
||||||
mov dword [ebx+SLOT_BASE+APPDATA.mem_start], 0
|
|
||||||
mov [ebx+SLOT_BASE+APPDATA.event_mask], dword 1+2+4;set default event flags (see 40 function)
|
mov [ebx+SLOT_BASE+APPDATA.event_mask], dword 1+2+4;set default event flags (see 40 function)
|
||||||
inc dword [process_number]
|
inc dword [process_number]
|
||||||
mov eax, [process_number]
|
mov eax, [process_number]
|
||||||
|
@ -1607,9 +1607,7 @@ sys_setup:
|
|||||||
dec ebx
|
dec ebx
|
||||||
jnz @f
|
jnz @f
|
||||||
|
|
||||||
mov edi, [current_slot]
|
mov eax, edx
|
||||||
mov eax, [edi+APPDATA.mem_start]
|
|
||||||
add eax, edx
|
|
||||||
; 1 = normal layout
|
; 1 = normal layout
|
||||||
dec ecx
|
dec ecx
|
||||||
jnz .shift
|
jnz .shift
|
||||||
@ -1704,16 +1702,13 @@ sys_getsetup:
|
|||||||
dec ebx
|
dec ebx
|
||||||
jnz @f
|
jnz @f
|
||||||
|
|
||||||
mov edi, [current_slot]
|
mov ebx, edx
|
||||||
mov ebx, [edi+APPDATA.mem_start]
|
|
||||||
add ebx, edx
|
|
||||||
; 1 = normal layout
|
|
||||||
dec ecx
|
|
||||||
jnz .shift
|
|
||||||
|
|
||||||
; if given memory address belongs to kernel then error
|
; if given memory address belongs to kernel then error
|
||||||
stdcall is_region_userspace, ebx, 128
|
stdcall is_region_userspace, ebx, 128
|
||||||
jnz .addr_error
|
jnz .addr_error
|
||||||
|
; 1 = normal layout
|
||||||
|
dec ecx
|
||||||
|
jnz .shift
|
||||||
|
|
||||||
mov eax, keymap
|
mov eax, keymap
|
||||||
mov ecx, 128
|
mov ecx, 128
|
||||||
@ -1725,9 +1720,6 @@ sys_getsetup:
|
|||||||
dec ecx
|
dec ecx
|
||||||
jnz .alt
|
jnz .alt
|
||||||
|
|
||||||
stdcall is_region_userspace, ebx, 128
|
|
||||||
jnz .addr_error
|
|
||||||
|
|
||||||
mov eax, keymap_shift
|
mov eax, keymap_shift
|
||||||
mov ecx, 128
|
mov ecx, 128
|
||||||
call memmove
|
call memmove
|
||||||
@ -1738,9 +1730,6 @@ sys_getsetup:
|
|||||||
dec ecx
|
dec ecx
|
||||||
jne .country
|
jne .country
|
||||||
|
|
||||||
stdcall is_region_userspace, ebx, 128
|
|
||||||
jnz .addr_error
|
|
||||||
|
|
||||||
mov eax, keymap_alt
|
mov eax, keymap_alt
|
||||||
mov ecx, 128
|
mov ecx, 128
|
||||||
call memmove
|
call memmove
|
||||||
|
Loading…
Reference in New Issue
Block a user