catm: close rootdir on exit.
This commit is contained in:
parent
dcaba36d05
commit
01fae8cd06
|
@ -179,6 +179,9 @@ DEFINE XOR_EAX_EAX 31C0
|
|||
COPY_R15_to_RCX # Get output file
|
||||
CALLI32 %close_file # close it
|
||||
|
||||
LOAD64_rel_RCX %rootdir # Get rootdir
|
||||
CALLI32 %rootdir # close it
|
||||
|
||||
COPY_RBX_to_RCX # Get buffer
|
||||
CALLI32 %free_pool # release it
|
||||
XOR_EAX_EAX # Exit code 0
|
||||
|
|
|
@ -123,6 +123,9 @@ done:
|
|||
mov rcx, r15 # Get output file
|
||||
call close_file # close it
|
||||
|
||||
mov rcx, [rip+rootdir] # Get rootdir
|
||||
call close_file # close it
|
||||
|
||||
mov rcx, rbx # Get buffer
|
||||
call free_pool # release it
|
||||
xor eax, eax # Exit code 0
|
||||
|
|
|
@ -252,6 +252,9 @@ F0 00 # SizeOfOptionalHeader
|
|||
4C89F9 ; COPY_R15_to_RCX # Get output file
|
||||
E8 %close_file ; CALLI32 %close_file # close it
|
||||
|
||||
488B0D %rootdir ; LOAD64_rel_RCX %rootdir # Get rootdir
|
||||
E8 %close_file ; CALLI32 %rootdir # close it
|
||||
|
||||
4889D9 ; COPY_RBX_to_RCX # Get buffer
|
||||
E8 %free_pool ; CALLI32 %free_pool # release it
|
||||
31C0 ; XOR_EAX_EAX # Exit code 0
|
||||
|
|
Loading…
Reference in New Issue