diff --git a/ba/autorun.cpp b/ba/autorun.cpp index 5dd240e23..87b04272b 100755 --- a/ba/autorun.cpp +++ b/ba/autorun.cpp @@ -104,7 +104,7 @@ unsigned int EutronLogin(int& year) if (eutron_key.status == ST_OK) { serno = (unsigned int)atol((const char*)eutron_key.data+4); - const int y = *(int*)(eutron_key.data+12); + const unsigned short y = *(unsigned short*)(eutron_key.data+12); if (y > 2000 && y < 3000) year = y; } @@ -216,7 +216,7 @@ bool DongleTest() else { wsprintf(line, "È necessario contattare l'assistenza tecnica\n" - "per l'abilitazione del contratto di manutenzione %d", ass_year); + "per l'abilitazione del contratto di manutenzione %d", verYear); WarningBox(line); } }