Subversion Repositories Kolibri OS

Rev

Rev 6023 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6023 Rev 9984
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                                 ;;
2
;;                                                                 ;;
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved.    ;;
3
;; Copyright (C) KolibriOS team 2004-2024. 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
;;   Written by hidnplayr@kolibrios.org                            ;;
6
;;   Written by hidnplayr@kolibrios.org                            ;;
7
;;                                                                 ;;
7
;;                                                                 ;;
8
;;         GNU GENERAL PUBLIC LICENSE                              ;;
8
;;         GNU GENERAL PUBLIC LICENSE                              ;;
Line 22... Line 22...
22
user_add:
22
user_add:
Line 23... Line 23...
23
 
23
 
24
        cmp     [ebx + window.users], MAX_USERS
24
        cmp     [ebx + window.users], MAX_USERS
Line -... Line 25...
-
 
25
        jae     .fail
25
        jae     .fail
26
 
26
 
27
; Check if user is already listed (case insensitive)
27
        mov     edi, [ebx + window.data_ptr]
28
        mov     edi, [ebx + window.data_ptr]
28
        add     edi, window_data.names
29
        add     edi, window_data.names
Line 105... Line 106...
105
        je      .done
106
        je      .done
106
        cmp     al, 13
107
        cmp     al, 13
107
        je      .done
108
        je      .done
108
        cmp     al, 10
109
        cmp     al, 10
109
        je      .done
110
        je      .done
-
 
111
        cmp     al, 0
-
 
112
        je      .done
110
        stosb
113
        stosb
111
        loop    .fill
114
        loop    .fill
112
  .done:
115
  .done:
113
        xor     al, al
116
        xor     al, al
114
        stosb
117
        stosb
Line 115... Line 118...
115
 
118
 
116
        inc     [ebx + window.users]
119
        inc     [ebx + window.users]
-
 
120
        or      [ebx + window.flags], FLAG_UPDATED
117
        or      [ebx + window.flags], FLAG_UPDATED
121
        dec     esi
118
  .fail:
122
  .fail: