Fix OpenDialog - test for empty directory

git-svn-id: svn://kolibrios.org@1477 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Marat Zakiyanov (Mario79) 2010-05-31 09:08:24 +00:00
parent 6db5aa0119
commit 78ac700d57

View File

@ -1792,13 +1792,19 @@ load_directory:
mcall 70,dirinfo
test eax,eax
jnz .error
; test for empty directory
mov eax,[dirinfo.return]
mov eax,[eax+4]
test eax,eax
jz @f
call delete_point_dir
call files_name_normalize
call check_filter
call prepare_extension_and_mark
call clear_data_fb_and_sb
@@:
ret
.error: