fix 68.31

git-svn-id: svn://kolibrios.org@9442 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Doczom 2021-12-18 23:39:17 +00:00
parent a83d394677
commit c92d2a4af9

View File

@ -1280,22 +1280,21 @@ f68:
jnz .fail ; 2 - get info for SRV structure jnz .fail ; 2 - get info for SRV structure
mov eax, -1 mov eax, -1
cmp ecx, OS_BASE ; ecx = pointer on structure cmp edx, OS_BASE ; edx = pointer on structure
jbe .fail jbe .fail
stdcall is_region_userspace, edx, 40 ;16+4*6=40 <-max size buffer stdcall is_region_userspace, edi, 40 ;16+4*6=40 <-max size buffer
jnz .fail ; edx = pointer on buffer jnz .fail ; edi = pointer on buffer
cmp [ecx+SRV.magic], ' SRV' cmp [edx+SRV.magic], ' SRV'
jne .fail jne .fail
cmp [ecx+SRV.size], sizeof.SRV cmp [edx+SRV.size], sizeof.SRV
jne .fail jne .fail
mov edi, edx mov esi, edx
mov esi, ecx
movsd ; name service 16 byte movsd ; name service 16 byte
movsd movsd
movsd movsd
movsd movsd
lea esi, [ecx+SRV.fd] lea esi, [edx+SRV.fd]
movsd ; SRV.fd movsd ; SRV.fd
movsd ; SRV.bk movsd ; SRV.bk
movsd ; SRV.base movsd ; SRV.base