Rev 10051 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 10051 | Rev 10069 | ||
---|---|---|---|
Line 39... | Line 39... | ||
39 | test eax, eax |
39 | test eax, eax |
40 | jz .fail |
40 | jz .fail |
41 | mov ebx, eax |
41 | mov ebx, eax |
42 | stdcall disk_media_changed, eax, 1 |
42 | stdcall disk_media_changed, eax, 1 |
43 | ; 2. We don't know actual size of loaded image, |
43 | ; 2. We don't know actual size of loaded image, |
44 | ; so try to calculate it using partition structure, |
44 | ; so try to calculate it using partition structure, assuming |
45 | ; assuming that file systems fill the real size based on contents of the partition. |
45 | ; that file systems fill the real size based on contents of the partition. |
46 | ; 2a. Prepare for loop over partitions. |
46 | ; 2a. Prepare for loop over partitions. |
47 | xor eax, eax |
47 | xor eax, eax |
48 | xor ecx, ecx |
48 | xor ecx, ecx |
49 | xor edx, edx |
49 | xor edx, edx |
50 | ; 2b. Check that at least one partition was recognized. |
50 | ; 2b. Check that at least one partition was recognized. |