forked from KolibriOS/kolibrios
Fix for sysfunctions 30.2 and 30.4
git-svn-id: svn://kolibrios.org@6534 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
2020b4052d
commit
5f91a2a1f4
@ -444,15 +444,13 @@ sys_current_directory: ; sysfunction 30
|
|||||||
|
|
||||||
.get: ; in: ecx -> buffer, edx = length
|
.get: ; in: ecx -> buffer, edx = length
|
||||||
mov esi, edi
|
mov esi, edi
|
||||||
|
inc esi
|
||||||
mov edi, ecx
|
mov edi, ecx
|
||||||
cmp edx, maxPathLength
|
cmp edx, maxPathLength
|
||||||
jc @f
|
jc @f
|
||||||
mov edx, maxPathLength
|
mov edx, maxPathLength
|
||||||
@@:
|
@@:
|
||||||
mov al, '/'
|
|
||||||
stosb
|
|
||||||
mov ecx, edx
|
mov ecx, edx
|
||||||
dec ecx
|
|
||||||
@@:
|
@@:
|
||||||
dec ecx
|
dec ecx
|
||||||
js @f
|
js @f
|
||||||
@ -469,16 +467,14 @@ sys_current_directory: ; sysfunction 30
|
|||||||
|
|
||||||
.get16:
|
.get16:
|
||||||
mov esi, edi
|
mov esi, edi
|
||||||
|
inc esi
|
||||||
mov edi, ecx
|
mov edi, ecx
|
||||||
cmp edx, maxPathLength
|
cmp edx, maxPathLength
|
||||||
jc @f
|
jc @f
|
||||||
mov edx, maxPathLength
|
mov edx, maxPathLength
|
||||||
@@:
|
@@:
|
||||||
shr edx, 1
|
shr edx, 1
|
||||||
mov ax, '/'
|
|
||||||
stosw
|
|
||||||
mov ecx, edx
|
mov ecx, edx
|
||||||
dec ecx
|
|
||||||
@@:
|
@@:
|
||||||
dec ecx
|
dec ecx
|
||||||
js @f
|
js @f
|
||||||
|
Loading…
Reference in New Issue
Block a user