Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8699 → Rev 8700

/kernel/trunk/network/stack.inc
760,7 → 760,12
ret
 
.get_dev_name:
mov esi, [eax + NET_DEVICE.name]
; { Patch by Coldy, sanity check
mov ebx, eax ; eax will used for is_region_userspace return
stdcall is_region_userspace, ecx, 64
jz .bad_buffer
mov esi, [ebx + NET_DEVICE.name] ;mov esi, [eax + NET_DEVICE.name]
; } End patch by Coldy, sanity check
mov edi, ecx
 
mov ecx, 64/4 ; max length
822,6 → 827,7
 
 
.doesnt_exist:
.bad_buffer: ; Sanity check failed, exit
mov dword[esp+32], -1
ret