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

@ -1793,12 +1793,18 @@ load_directory:
test eax,eax test eax,eax
jnz .error jnz .error
; test for empty directory
mov eax,[dirinfo.return]
mov eax,[eax+4]
test eax,eax
jz @f
call delete_point_dir call delete_point_dir
call files_name_normalize call files_name_normalize
call check_filter call check_filter
call prepare_extension_and_mark call prepare_extension_and_mark
call clear_data_fb_and_sb call clear_data_fb_and_sb
@@:
ret ret
.error: .error: