forked from KolibriOS/kolibrios
Just a quick correction of the estimated potential problem with incorrect data changes during operation. In the future, I will replace the CLI on the mutex.
git-svn-id: svn://kolibrios.org@3678 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
9901a769c7
commit
7ba632508c
@ -939,7 +939,8 @@ process_replace_file_name:
|
|||||||
;
|
;
|
||||||
; out
|
; out
|
||||||
; ebp - full filename
|
; ebp - full filename
|
||||||
|
pushfd
|
||||||
|
cli
|
||||||
mov ebp, [full_file_name_table]
|
mov ebp, [full_file_name_table]
|
||||||
mov edi, [full_file_name_table.size]
|
mov edi, [full_file_name_table.size]
|
||||||
dec edi
|
dec edi
|
||||||
@ -979,6 +980,7 @@ process_replace_file_name:
|
|||||||
.notfound:
|
.notfound:
|
||||||
xor ebp, ebp
|
xor ebp, ebp
|
||||||
.ret:
|
.ret:
|
||||||
|
popfd
|
||||||
ret
|
ret
|
||||||
|
|
||||||
uglobal
|
uglobal
|
||||||
@ -1014,6 +1016,8 @@ sys_current_directory:
|
|||||||
mov edi, sysdir_name1
|
mov edi, sysdir_name1
|
||||||
; copying fake directory name
|
; copying fake directory name
|
||||||
mov ecx, 63
|
mov ecx, 63
|
||||||
|
pushfd
|
||||||
|
cli
|
||||||
cld
|
cld
|
||||||
rep movsb
|
rep movsb
|
||||||
; terminator of name, in case if we get the inlet trash
|
; terminator of name, in case if we get the inlet trash
|
||||||
@ -1031,6 +1035,7 @@ sys_current_directory:
|
|||||||
; block the ability to call f.30.3 because for one session is necessary
|
; block the ability to call f.30.3 because for one session is necessary
|
||||||
; for us only once
|
; for us only once
|
||||||
mov [lock_flag_for_f30_3], 1
|
mov [lock_flag_for_f30_3], 1
|
||||||
|
popfd
|
||||||
@@:
|
@@:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user