Rev 390 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 390 | Rev 427 | ||
---|---|---|---|
Line 265... | Line 265... | ||
265 | cmp [eax+CURSOR.magic], 'CURS' |
265 | cmp [eax+CURSOR.magic], 'CURS' |
266 | jne .fail |
266 | jne .fail |
267 | ; cmp [eax+CURSOR.size], CURSOR_SIZE |
267 | ; cmp [eax+CURSOR.size], CURSOR_SIZE |
268 | ; jne .fail |
268 | ; jne .fail |
269 | mov ebx, [CURRENT_TASK] |
269 | mov ebx, [current_slot] |
270 | shl ebx, 8 |
270 | xchg eax, [ebx+APPDATA.cursor] |
271 | xchg eax, [ebx+SLOT_BASE+APPDATA.cursor] |
- | |
272 | ret |
271 | ret |
273 | .fail: |
272 | .fail: |
274 | mov eax, [def_cursor] |
273 | mov eax, [def_cursor] |
275 | mov ebx, [CURRENT_TASK] |
274 | mov ebx, [current_slot] |
276 | shl ebx, 8 |
275 | xchg eax, [ebx+APPDATA.cursor] |
277 | xchg eax, [ebx+SLOT_BASE+APPDATA.cursor] |
- | |
278 | ret |
276 | ret |
279 | endp |
277 | endp |
280 | 278 | ||
Line 281... | Line 279... | ||
281 | ; param |
279 | ; param |
282 | ; eax= pid |
280 | ; eax= pid |
Line 396... | Line 394... | ||
396 | mov ebx, [CURRENT_TASK+ebx+4] |
394 | mov ebx, [CURRENT_TASK+ebx+4] |
397 | cmp ebx, [esi+CURSOR.pid] |
395 | cmp ebx, [esi+CURSOR.pid] |
398 | jne .fail |
396 | jne .fail |
399 | 397 | ||
Line 400... | Line 398... | ||
400 | mov ebx, [CURRENT_TASK] |
398 | mov ebx, [current_slot] |
401 | shl ebx, 8 |
- | |
402 | cmp esi, [ebx+SLOT_BASE+APPDATA.cursor] |
399 | cmp esi, [ebx+APPDATA.cursor] |
403 | jne @F |
400 | jne @F |
404 | mov eax, [def_cursor] |
401 | mov eax, [def_cursor] |
405 | mov [ebx+SLOT_BASE+APPDATA.cursor], eax |
402 | mov [ebx+APPDATA.cursor], eax |
406 | @@: |
403 | @@: |
407 | mov eax, [hcursor] |
404 | mov eax, [hcursor] |
408 | call [eax+APPOBJ.destroy] |
405 | call [eax+APPOBJ.destroy] |
409 | .fail: |
406 | .fail: |
410 | ret |
407 | ret |