From 7040da8224c490cf8d16986d89da4448eace66c6 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 22 Sep 2010 09:39:46 +0000 Subject: [PATCH] Patch level : 10.0 Files correlati : ba0.exe Ricompilazione Demo : [ ] Commento : Aggiunta riga definizione modulo Hardy #define HAAUT 46 git-svn-id: svn://10.65.10.50/branches/R_10_00@20893 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/dongle.cpp | 5 +++-- include/modaut.h | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/dongle.cpp b/include/dongle.cpp index 53e5dcbd8..55ff78222 100755 --- a/include/dongle.cpp +++ b/include/dongle.cpp @@ -982,7 +982,7 @@ const TString_array& TDongle::info() const word TDongle::module_name2code(const char* mod) const { - int i = 0; + int i = BAAUT; if (mod && *mod && xvt_str_compare_ignoring_case(mod, "sy") != 0) { if (real::is_natural(mod)) @@ -997,7 +997,8 @@ word TDongle::module_name2code(const char* mod) const const TString_array& modinfo = info(); for (i = modinfo.last(); i >= 0; i--) { - if (modinfo.row(i).starts_with(mod, true)) + const TString& autstr = modinfo.row(i); + if (autstr.starts_with(mod, true)) break; } } diff --git a/include/modaut.h b/include/modaut.h index 873b26cff..aabe72e05 100755 --- a/include/modaut.h +++ b/include/modaut.h @@ -45,6 +45,7 @@ #define L2AUT 43 #define L3AUT 44 #define L4AUT 45 +#define HAAUT 46 #define RIAUT 47 #define ENDAUT 48