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
This commit is contained in:
luca 2003-01-10 14:58:01 +00:00
parent 156b614a92
commit e3af7d7b32

View File

@ -11,7 +11,7 @@
extern "C" extern "C"
{ {
#include "../include/hlapi_c.h" #include "../include/hlapi_c.h"
#include "../include/skeytsr.h" #include "../include/skeylink.h"
} }
void ErrorBox(LPCSTR str) void ErrorBox(LPCSTR str)
@ -95,7 +95,7 @@ unsigned int EutronLogin(int& year)
if (eutron_key.status == ST_OK) if (eutron_key.status == ST_OK)
{ {
eutron_key.net_command = NET_KEY_ACCESS; 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* pointer = (int*)(&eutron_key.data[0]);
int* number = (int*)(&eutron_key.data[2]); int* number = (int*)(&eutron_key.data[2]);
*pointer = 0; // Posizione in cui leggere *pointer = 0; // Posizione in cui leggere
@ -152,7 +152,6 @@ int VersionYear()
{ {
char ver[32]; char ver[32];
GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "./eurocampo/zip/install.ini"); GetPrivateProfileString("ba", "Versione", "", ver, sizeof(ver), "./eurocampo/zip/install.ini");
ver[4] = '\0'; ver[4] = '\0';
return atoi(ver); return atoi(ver);
} }
@ -174,7 +173,6 @@ bool DongleTest()
bool ok = FALSE; bool ok = FALSE;
ifstream keys("./eurocampo/zip/dninst.zip", ios::in | ios::nocreate); ifstream keys("./eurocampo/zip/dninst.zip", ios::in | ios::nocreate);
if (keys.good()) if (keys.good())
{ {
char line[256]; char line[256];
@ -271,7 +269,6 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
RECT rct; RECT rct;
const char* s1 = "Installa EUROCAMPO in versione commerciale protetta. E' necessario disporre di una chiave di protezione hardware."; 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* 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* s4 = "Termina installazione";
const char* s5 = "Scelta installazione"; const char* s5 = "Scelta installazione";
@ -315,7 +312,6 @@ LRESULT CALLBACK MainWndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{ {
if (DongleTest()) if (DongleTest())
Run("eurocampo\\disk1\\setup.exe"); Run("eurocampo\\disk1\\setup.exe");
} }
else if (wParam == 1001) else if (wParam == 1001)
{ {