Apply changes to MS Visual C build. Patch from Ianos Gnatiuc 2:469/335.155
This commit is contained in:
@@ -153,7 +153,7 @@ void gareafile::ReadFMail116(FILE* fp, char* path, char* file, char* options) {
|
||||
aa.setdesc("FMail Personal Mail");
|
||||
aa.setautoid("ECHO_PERSONAL");
|
||||
AddNewArea(aa);
|
||||
}
|
||||
}
|
||||
|
||||
headerType hdr;
|
||||
|
||||
@@ -232,7 +232,7 @@ void gareafile::ReadFMail116(FILE* fp, char* path, char* file, char* options) {
|
||||
|
||||
fclose(fp);
|
||||
}
|
||||
|
||||
|
||||
throw_delete(cfg);
|
||||
}
|
||||
|
||||
@@ -278,7 +278,7 @@ void gareafile::ReadFMail(char* tag) {
|
||||
rewind(fp);
|
||||
|
||||
uint fmver = (_rev.vmajor << 8) | _rev.vminor;
|
||||
|
||||
|
||||
if(fmver < 94)
|
||||
ReadFMail092(fp, path, file, options);
|
||||
else {
|
||||
@@ -297,8 +297,12 @@ void gareafile::ReadFMail(char* tag) {
|
||||
ReadFMail098(fp, path, file, options);
|
||||
else if((ar_rev >= 0x0110) and (ar_rev < 0x0200))
|
||||
ReadFMail116(fp, path, file, options);
|
||||
else
|
||||
std::cout << "* Error: Unknown FMail config revision " << std::setfill('0') << std::setw(4) << std::hex << ar_rev << "h - Skipping." << std::endl;
|
||||
else {
|
||||
char buff[56+sizeof(uint)*2];
|
||||
sprintf(buff, "* Error: Unknown FMail config revision %04Xh - Skipping.\n", ar_rev);
|
||||
std::cout << buff;
|
||||
// std::cout << "* Error: Unknown FMail config revision " << std::setfill('0') << std::setw(4) << std::hex << ar_rev << "h - Skipping." << std::endl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -218,7 +218,11 @@ void gareafile::ReadIMail(char* tag) {
|
||||
#endif
|
||||
}
|
||||
}
|
||||
std::cout << "* Error: IMAIL " << imver[0] << '.' << std::setfill('0') << std::setw(2) << imver[1] << " (structure revision " << imstructver[0] << '.' << std::setfill('0') << std::setw(2) << imstructver[1] << ") is not supported - Skipping." << std::endl;
|
||||
char buff[78];
|
||||
sprintf(buff, "* Error: IMAIL %c.%02c (structure revision %c.%02c) is not supported - Skipping.\n", imver[0], imver[1], imstructver[0], imstructver[1]);
|
||||
std::cout << buff;
|
||||
|
||||
// std::cout << "* Error: IMAIL " << imver[0] << '.' << std::setfill('0') << std::setw(2) << imver[1] << " (structure revision " << imstructver[0] << '.' << std::setfill('0') << std::setw(2) << imstructver[1] << ") is not supported - Skipping." << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -216,7 +216,9 @@ void gareafile::ReadInterMail(char* tag) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
std::cout << "* Error: InterMail revision " << std::setfill('0') << std::setw(4) << std::hex << ctl->sysrev << "h is not supported - Skipping." << std::endl;
|
||||
char buff[62+sizeof(ctl->sysrev)*2];
|
||||
sprintf(buff, "* Error: InterMail revision %04Xh is not supported - Skipping.\n", ctl->sysrev);
|
||||
std::cout << buff;
|
||||
}
|
||||
throw_free(ctl);
|
||||
}
|
||||
|
Reference in New Issue
Block a user