From e3af7d7b3285b2df701087f04303f9b71c9e3399 Mon Sep 17 00:00:00 2001 From: luca Date: Fri, 10 Jan 2003 14:58:01 +0000 Subject: [PATCH] Patch level :aga 2.0 Files correlati :setup.exe Ricompilazione Demo : [ ] Commento :sistemato errore compilazione git-svn-id: svn://10.65.10.50/trunk@10722 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/autorun.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ba/autorun.cpp b/ba/autorun.cpp index f24ec4c92..ec99abe3e 100755 --- a/ba/autorun.cpp +++ b/ba/autorun.cpp @@ -11,7 +11,7 @@ extern "C" { #include "../include/hlapi_c.h" -#include "../include/skeytsr.h" +#include "../include/skeylink.h" } void ErrorBox(LPCSTR str) @@ -95,7 +95,7 @@ unsigned int EutronLogin(int& year) if (eutron_key.status == ST_OK) { eutron_key.net_command = NET_KEY_ACCESS; - memcpy(&eutron_key.command, BLOCK_READING_MODE, 2); + eutron_key.command = BLOCK_READING_MODE; int* pointer = (int*)(&eutron_key.data[0]); int* number = (int*)(&eutron_key.data[2]); *pointer = 0; // Posizione in cui leggere @@ -152,7 +152,6 @@ int VersionYear() { char ver[32]; GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "./eurocampo/zip/install.ini"); - ver[4] = '\0'; return atoi(ver); } @@ -174,7 +173,6 @@ bool DongleTest() bool ok = FALSE; ifstream keys("./eurocampo/zip/dninst.zip", ios::in | ios::nocreate); - if (keys.good()) { char line[256]; @@ -271,7 +269,6 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) RECT rct; const char* s1 = "Installa EUROCAMPO in versione commerciale protetta. E' necessario disporre di una chiave di protezione hardware."; const char* s2 = "Installa EUROCAMPO in versione Demo. La versione Demo è priva di protezione hardware ma soggetta ad alcune limitazioni."; - const char* s4 = "Termina installazione"; const char* s5 = "Scelta installazione"; @@ -315,7 +312,6 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { if (DongleTest()) Run("eurocampo\\disk1\\setup.exe"); - } else if (wParam == 1001) {