Rev 1997 | Rev 2234 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1997 | Rev 1998 | ||
---|---|---|---|
Line 104... | Line 104... | ||
104 | cmp eax, 5 |
104 | cmp eax, 5 |
105 | jne @f |
105 | jne @f |
106 | mov esi, filename |
106 | mov esi, filename |
107 | mov [filepos], 0 |
107 | mov [filepos], 0 |
108 | call CreateFile |
108 | call CreateFile |
109 | jmp .write_to_logfile |
109 | jnc .write_to_logfile |
110 | @@: |
110 | @@: |
111 | inc [filepos] |
111 | inc [filepos] |
112 | popa |
112 | popa |
113 | end if |
113 | end if |
Line 280... | Line 280... | ||
280 | mov dword [InfoStructure+12], 0 ; 0 bytes to write (just create) |
280 | mov dword [InfoStructure+12], 0 ; 0 bytes to write (just create) |
281 | mov dword [InfoStructure+16], 0 ; NULL data pointer (no data) |
281 | mov dword [InfoStructure+16], 0 ; NULL data pointer (no data) |
282 | mov dword [InfoStructure+20], 0 ; reserved |
282 | mov dword [InfoStructure+20], 0 ; reserved |
283 | mov dword [InfoStructure+21], esi ; pointer to the file name |
283 | mov dword [InfoStructure+21], esi ; pointer to the file name |
284 | mcall 70, InfoStructure |
284 | mcall 70, InfoStructure |
285 | clc |
- | |
286 | test eax, eax |
285 | test eax, eax |
287 | jz .out |
286 | jz .out |
288 | stc |
287 | stc |
289 | .out: |
288 | .out: |
290 | popa |
289 | popa |