Rev 346 | Rev 363 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 346 | Rev 357 | ||
---|---|---|---|
Line 510... | Line 510... | ||
510 | mov ebx, [file_size] |
510 | mov ebx, [file_size] |
511 | .exit: |
511 | .exit: |
512 | push eax |
512 | push eax |
513 | lea edi, [eax+ebx] ;cleanup remain space |
513 | lea edi, [eax+ebx] ;cleanup remain space |
514 | mov ecx, ebx ;from file end |
514 | mov ecx, 4096 ;from file end |
515 | add ecx, 4095 |
515 | and ebx, 4095 |
516 | and ecx, not 4095 |
516 | sub ecx, ebx |
517 | sub ecx, ebx |
- | |
518 | xor eax, eax |
517 | xor eax, eax |
519 | cld |
518 | cld |
520 | rep stosb |
519 | rep stosb |
521 | pop eax |
520 | mov ebx, [file_size] |
- | 521 | pop eax |
|
522 | ret |
522 | ret |
523 | .cleanup: |
523 | .cleanup: |
524 | stdcall kernel_free, [file] |
524 | stdcall kernel_free, [file] |
525 | .fail: |
525 | .fail: |
526 | xor eax, eax |
526 | xor eax, eax |