16,7 → 16,7 |
mov ecx,eax |
lodsw |
rep movsb |
mov ax,0x0a0d |
mov ax,0x0a0d ; EOS (end of string) |
stosw |
; mov ax,0x0d |
; stosb |
24,6 → 24,7 |
dec ecx |
jnz @b |
|
sub edi,2 ; delete last EOS (0x0a0d) |
xor eax,eax |
stosb |
; building the clipboard slot header |
180,7 → 181,7 |
mov esi,eax |
add esi,4*3 |
mov ecx,[eax] |
sub ecx,4*3 |
sub ecx,4*3-1 |
xor edx,edx |
cld |
;-------------------------------------- |
188,7 → 189,7 |
lodsb |
|
test al,al |
jz .inc_counter ;.end_of_data |
jz .end_of_data |
|
cmp al,0x0d |
je .check_0x0a |
220,7 → 221,6 |
sub eax,ebx |
sub eax,6 |
mov [ebx],eax ; size of current string |
|
mov ebx,edi |
add edi,6 |
inc edx |
227,8 → 227,11 |
jmp .loop |
;-------------------------------------- |
.end_of_data: |
mov eax,edi |
sub eax,ebx |
sub eax,6 |
mov [ebx],eax ; size of current string |
sub edi,[copy_buf] |
sub edi,6 |
mov [copy_size],edi |
ret |
;----------------------------------------------------------------------------- |
289,5 → 292,6 |
inc esi |
;-------------------------------------- |
.end_of_data: |
inc ebx |
ret |
;----------------------------------------------------------------------------- |