Rev 6876 | Rev 9692 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6876 | Rev 6880 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2016. 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: 6876 $ |
8 | $Revision: 6880 $ |
9 | 9 | ||
10 | ; CD external functions |
10 | ; CD external functions |
11 | ; in: |
11 | ; in: |
Line 262... | Line 262... | ||
262 | call cd_find_lfn |
262 | call cd_find_lfn |
263 | jnc .found |
263 | jnc .found |
264 | pop edi |
264 | pop edi |
265 | cmp [DevErrorCode], 0 |
265 | cmp [DevErrorCode], 0 |
266 | jne .noaccess_1 |
266 | jne .noaccess_1 |
267 | or ebx, -1 |
267 | xor ebx, ebx |
268 | mov eax, ERROR_FILE_NOT_FOUND |
268 | mov eax, ERROR_FILE_NOT_FOUND |
269 | ret |
269 | ret |
Line 270... | Line 270... | ||
270 | 270 | ||
271 | .found: |
271 | .found: |
272 | mov edi, [cd_current_pointer_of_input] |
272 | mov edi, [cd_current_pointer_of_input] |
273 | test byte [edi+25], 10b ; do not allow read directories |
273 | test byte [edi+25], 10b ; do not allow read directories |
274 | jnz .found_dir |
274 | jnz .found_dir |
275 | pop edi |
275 | pop edi |
276 | .noaccess_1: |
276 | .noaccess_1: |
277 | or ebx, -1 |
277 | xor ebx, ebx |
278 | mov eax, ERROR_ACCESS_DENIED |
278 | mov eax, ERROR_ACCESS_DENIED |
Line 279... | Line 279... | ||
279 | ret |
279 | ret |
280 | 280 |