Random fixes

This commit is contained in:
Alexander S. Aganichev
2002-10-26 16:28:01 +00:00
parent 542867d190
commit 5c40b1a909
16 changed files with 85 additions and 33 deletions

View File

@@ -34,7 +34,7 @@
void ErrorExit(int type) {
static int in_error_exit = false;
static int in_error_exit = 0;
if(not in_error_exit++) {
error_exit = type;

View File

@@ -287,7 +287,7 @@ extern int WidePersonalmail;
// ------------------------------------------------------------------
int PopupLocked(long __tries, int __isopen, const char* __file);
bool PopupLocked(long __tries, int __isopen, const char* __file);
const char* Unpack(const char* archive);
void CleanUnpacked(const char* unpacked);

View File

@@ -130,7 +130,7 @@ int EzycomArea::test_open(const char* __file, int __mode, int __share) {
if(_fh == -1) {
// Tell the world
if(PopupLocked(++_tries, false, _path) == false) {
if((errno != EACCES) or (PopupLocked(++_tries, false, _path) == false)) {
WideLog->ErrOpen();
raw_close();
WideLog->printf("! A Ezycom msgbase file could not be opened.");

View File

@@ -163,7 +163,8 @@ void JamArea::close() {
if(isopen) {
if(isopen == 1) {
save_lastread();
if(data->fhjhr != -1)
save_lastread();
if(data->islocked)
unlock();
raw_close();

View File

@@ -70,7 +70,7 @@ int PcbWideTestOpen(char* __file) {
if(_fh == -1) {
// Tell the world
if(PopupLocked(++_tries, false, __file) == false) {
if((errno != EACCES) or (PopupLocked(++_tries, false, __file) == false)) {
WideLog->ErrOpen();
PcbWideClose();
WideLog->printf("! A PCBoard msgbase file could not be opened.");
@@ -173,7 +173,7 @@ int PcbArea::test_open(const char* __file) {
if(_fh == -1) {
// Tell the world
if(PopupLocked(++_tries, false, __file) == false) {
if((errno != EACCES) or (PopupLocked(++_tries, false, __file) == false)) {
WideLog->ErrOpen();
raw_close();
PcbWideClose();

View File

@@ -133,7 +133,7 @@ int SquishArea::test_open(const char* __file) {
if(_fh == -1) {
// Tell the world
if(PopupLocked(++_tries, false, __file) == false) {
if((errno != EACCES) or (PopupLocked(++_tries, false, __file) == false)) {
// User requested to exit
WideLog->ErrOpen();

View File

@@ -82,7 +82,7 @@ int WCatArea::test_open(const char* __file) {
if(_fh == -1) {
// Tell the world
if(PopupLocked(++_tries, false, __file) == false) {
if((errno != EACCES) or (PopupLocked(++_tries, false, __file) == false)) {
// User requested to exit
WideLog->ErrOpen();

View File

@@ -95,7 +95,7 @@ int XbbsArea::test_open(const char* __file, int sharemode) {
if(_fh == -1) {
// Tell the world
if(PopupLocked(++_tries, false, __file) == false) {
if((errno != EACCES) or (PopupLocked(++_tries, false, __file) == false)) {
// User requested to exit
WideLog->ErrOpen();