From 78ac700d57898bfe7542b693c6285cc6f52d0356 Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Mon, 31 May 2010 09:08:24 +0000 Subject: [PATCH] Fix OpenDialog - test for empty directory git-svn-id: svn://kolibrios.org@1477 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../develop/libraries/box_lib/asm/trunk/OpenDial.asm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/programs/develop/libraries/box_lib/asm/trunk/OpenDial.asm b/programs/develop/libraries/box_lib/asm/trunk/OpenDial.asm index 7078b8e796..56285f72f4 100644 --- a/programs/develop/libraries/box_lib/asm/trunk/OpenDial.asm +++ b/programs/develop/libraries/box_lib/asm/trunk/OpenDial.asm @@ -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: