Rev 237 | Rev 281 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 237 | Rev 269 | ||
---|---|---|---|
Line 542... | Line 542... | ||
542 | stdcall kernel_free, [file] |
542 | stdcall kernel_free, [file] |
543 | mov eax, [file2] |
543 | mov eax, [file2] |
544 | mov ebx, [file_size] |
544 | mov ebx, [file_size] |
545 | .exit: |
545 | .exit: |
546 | ret |
546 | push eax |
- | 547 | lea edi, [eax+ebx] ;cleanup remain space |
|
- | 548 | mov ecx, ebx ;from file end |
|
- | 549 | add ecx, 4095 |
|
- | 550 | and ecx, not 4095 |
|
- | 551 | sub ecx, ebx |
|
- | 552 | xor eax, eax |
|
- | 553 | cld |
|
- | 554 | rep stosb |
|
- | 555 | pop eax |
|
- | 556 | ret |
|
547 | .cleanup: |
557 | .cleanup: |
548 | stdcall kernel_free, [file] |
558 | stdcall kernel_free, [file] |
549 | .fail: |
559 | .fail: |
550 | xor eax, eax |
560 | xor eax, eax |
551 | xor ebx, ebx |
561 | xor ebx, ebx |