From 4276fd7c15b98a7f1b315e9280b16a0fd22b0a59 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 15 Sep 1995 15:35:48 +0000 Subject: [PATCH] Eliminato errore di condivisione git-svn-id: svn://10.65.10.50/trunk@1838 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba1100.cpp | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/ba/ba1100.cpp b/ba/ba1100.cpp index 1136d9b43..14ce0864c 100755 --- a/ba/ba1100.cpp +++ b/ba/ba1100.cpp @@ -547,23 +547,30 @@ void TManutenzione_app::update_dir() if (d.eox() > 0L) { d.get(i, _nolock, _nordir, _sysdirop); - d.eod() = 0L; - d.eox() = 0L; - d.put(i, _nordir, _sysdirop); + d.eod() = 0L; + d.eox() = 0L; + d.put(i, _nordir, _sysdirop); } } - else - if (d.len() > 0) + else + if (i > 2) { - TLocalisamfile f(i); - } - else - { - remove(d.filename()); - TToken_string idx_names; - get_idx_names(i, idx_names); - for (const char * idx_name = idx_names.get(); idx_name != NULL; idx_name = idx_names.get()) - remove(idx_name); + if (d.len() > 0) + { + TLocalisamfile f(i); + } + else + { + remove(d.filename()); + TToken_string idx_names; + get_idx_names(i, idx_names); + for (const char * idx_name = idx_names.get(); idx_name != NULL; idx_name = idx_names.get()) + remove(idx_name); + d.get(i, _nolock, _nordir, _sysdirop); + d.eod() = 0L; + d.eox() = 0L; + d.put(i, _nordir, _sysdirop); + } } d.get(i, _nolock, _nordir, _sysdirop); bool to_create = (is_com ? d.is_com() : d.is_firm()); @@ -622,7 +629,7 @@ void TManutenzione_app::update_dir() fdi.ext(fsi.ext()); td.add(fdi); if (!fcopy(fsi, fdi)) - ok = FALSE; + ok = FALSE; } if (ok) {