Rev 4487 | Rev 4505 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4487 | Rev 4489 | ||
---|---|---|---|
Line 121... | Line 121... | ||
121 | ;-------------------------------------- |
121 | ;-------------------------------------- |
122 | .exit: |
122 | .exit: |
123 | popad |
123 | popad |
124 | ret |
124 | ret |
125 | ;----------------------------------------------------------------------------- |
125 | ;----------------------------------------------------------------------------- |
- | 126 | check_clipboard_for_popup: |
|
- | 127 | pushad |
|
- | 128 | mov [popup_valid_text],0 |
|
- | 129 | mcall 54,0 |
|
- | 130 | ; no slots of clipboard ? |
|
- | 131 | test eax,eax |
|
- | 132 | jz .exit |
|
- | 133 | ; main list area not found ? |
|
- | 134 | inc eax |
|
- | 135 | test eax,eax |
|
- | 136 | jz .exit |
|
- | 137 | ||
- | 138 | sub eax,2 |
|
- | 139 | mov ecx,eax |
|
- | 140 | mcall 54,1 |
|
- | 141 | ; main list area not found ? |
|
- | 142 | inc eax |
|
- | 143 | test eax,eax |
|
- | 144 | jz .exit |
|
- | 145 | ; error ? |
|
- | 146 | sub eax,2 |
|
- | 147 | test eax,eax |
|
- | 148 | jz .exit |
|
- | 149 | ||
- | 150 | inc eax |
|
- | 151 | mov [clipboard_buf],eax |
|
- | 152 | ; check contents of container |
|
- | 153 | mov ebx,[eax+4] |
|
- | 154 | ; check for text |
|
- | 155 | test ebx,ebx |
|
- | 156 | jnz .remove_area |
|
- | 157 | ||
- | 158 | mov ebx,[eax+8] |
|
- | 159 | ; check for cp866 |
|
- | 160 | cmp bl,1 |
|
- | 161 | jnz .remove_area |
|
- | 162 | ||
- | 163 | .yes_valid_text: |
|
- | 164 | mov [popup_valid_text],1 |
|
- | 165 | ; remove unnecessary memory area |
|
- | 166 | .remove_area: |
|
- | 167 | xor eax,eax |
|
- | 168 | stdcall mem.ReAlloc,[clipboard_buf],eax |
|
- | 169 | mov [clipboard_buf],eax |
|
- | 170 | ;-------------------------------------- |
|
- | 171 | .exit: |
|
- | 172 | popad |
|
- | 173 | ret |
|
- | 174 | ;----------------------------------------------------------------------------- |
|
126 | convert_clipboard_buf_to_copy_buf: |
175 | convert_clipboard_buf_to_copy_buf: |
127 | mov edi,[copy_buf] |
176 | mov edi,[copy_buf] |
128 | mov ebx,edi |
177 | mov ebx,edi |
129 | add edi,6 |
178 | add edi,6 |
130 | mov eax,[clipboard_buf] |
179 | mov eax,[clipboard_buf] |