Rev 8869 | Rev 9692 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8869 | Rev 9405 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2020. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 8869 $ |
8 | $Revision: 9405 $ |
9 | 9 | ||
10 | 10 | ||
Line 1476... | Line 1476... | ||
1476 | 1476 | ||
1477 | mov eax, [name] |
1477 | mov eax, [name] |
1478 | test eax, eax |
1478 | test eax, eax |
Line -... | Line 1479... | ||
- | 1479 | jz .fail |
|
1479 | jz .fail |
1480 | |
1480 | 1481 | push ebx ; Added |
|
1481 | push esi |
1482 | push esi |
1482 | push edi |
1483 | push edi |
Line 1483... | Line 1484... | ||
1483 | pushfd |
1484 | pushfd |
1484 | cli |
1485 | cli |
- | 1486 | ||
1485 | 1487 | mov esi, [current_slot] |
|
1486 | mov esi, [current_slot] |
1488 | add esi, APP_OBJ_OFFSET |
1487 | add esi, APP_OBJ_OFFSET |
1489 | mov ebx, esi ; Fixed endless loop bug with not existing name (part 1) |
1488 | .next: |
1490 | .next: |
Line -... | Line 1491... | ||
- | 1491 | mov eax, [esi + APPOBJ.fd] |
|
1489 | mov eax, [esi + APPOBJ.fd] |
1492 | test eax, eax |
1490 | test eax, eax |
1493 | jz @F |
1491 | jz @F |
1494 | |
Line 1492... | Line 1495... | ||
1492 | 1495 | cmp eax, ebx ;esi ; Fixed endless loop bug with not existing name (part 2) |
|
1493 | cmp eax, esi |
1496 | je @F ; Small optimization |
Line 1494... | Line 1497... | ||
1494 | mov esi, eax |
1497 | mov esi, eax |
Line 1512... | Line 1515... | ||
1512 | call [esi + APPOBJ.destroy] |
1515 | call [esi + APPOBJ.destroy] |
1513 | @@: |
1516 | @@: |
1514 | popfd |
1517 | popfd |
1515 | pop edi |
1518 | pop edi |
1516 | pop esi |
1519 | pop esi |
- | 1520 | pop ebx ; Added |
|
1517 | .fail: |
1521 | .fail: |
1518 | ret |
1522 | ret |
1519 | endp |
1523 | endp |