From 2ccb0295c9365d1f498a6cf83db69b8d99d639ea Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Mon, 7 Oct 2013 22:17:19 +0000 Subject: [PATCH] OpenDialog - not process the file path if the directory consisting zero amount of files. git-svn-id: svn://kolibrios.org@3983 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/fs/opendial/opendial.asm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/fs/opendial/opendial.asm b/programs/fs/opendial/opendial.asm index 31da19f017..e0e5ca8d5c 100644 --- a/programs/fs/opendial/opendial.asm +++ b/programs/fs/opendial/opendial.asm @@ -658,6 +658,11 @@ button: jmp still ;--------------------------------------------------------------------- .open_dir_or_file: + mov eax,[file_browser_data_1.folder_data] + mov eax,[eax+4] + test eax,eax + jz button.exit + cmp [open_dialog_type],2 ;Select dir je file_no_folder