Random fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
|
@@ -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.");
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user