win32 error message glitch noticed
This commit is contained in:
@@ -127,11 +127,16 @@ getlock()
|
|||||||
# if defined(WIN32)
|
# if defined(WIN32)
|
||||||
# if defined(HOLD_LOCKFILE_OPEN)
|
# if defined(HOLD_LOCKFILE_OPEN)
|
||||||
if(errno == EACCES) {
|
if(errno == EACCES) {
|
||||||
msmsg("\nThere are files from a game in progress under your name.");
|
#define OOPS_BUFSZ 512
|
||||||
msmsg(
|
char oops[OOPS_BUFSZ];
|
||||||
"\nThe files are locked or inaccessible. Is the other game still running?");
|
Strcpy(oops,
|
||||||
unlock_file(HLOCK);
|
"\nThere are files from a game in progress under your name.");
|
||||||
error("Cannot open %s", fq_lock);
|
Strcat(oops, "\nThe files are locked or inaccessible.");
|
||||||
|
Strcat(oops, " Is the other game still running?\n");
|
||||||
|
if (strlen(fq_lock) < ((OOPS_BUFSZ - 1) - strlen(oops)))
|
||||||
|
Sprintf(eos(oops), "Cannot open %s", fq_lock);
|
||||||
|
unlock_file(HLOCK);
|
||||||
|
error(oops);
|
||||||
} else
|
} else
|
||||||
# endif
|
# endif
|
||||||
error("Bad directory or name: %s\n%s\n",
|
error("Bad directory or name: %s\n%s\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user