win32gui: make error() work
- in 3.4.0 it was useless in the graphical port.
This commit is contained in:
@@ -117,7 +117,12 @@ getlock()
|
||||
if((fd = open(fq_lock,0)) == -1) {
|
||||
if(errno == ENOENT) goto gotlock; /* no such file */
|
||||
chdirx(orgdir, 0);
|
||||
#if defined(WIN32)
|
||||
error("Bad directory or name: %s\n%s\n",
|
||||
fq_lock, strerror(errno));
|
||||
#else
|
||||
perror(fq_lock);
|
||||
#endif
|
||||
unlock_file(HLOCK);
|
||||
error("Cannot open %s", fq_lock);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user