Mercurial > hg > xemacs-beta
diff src/objects-msw.c @ 361:7347b34c275b r21-1-10
Import from CVS: tag r21-1-10
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:58:40 +0200 |
parents | 8e84bee8ddd0 |
children | cc15677e0335 |
line wrap: on
line diff
--- a/src/objects-msw.c Mon Aug 13 10:57:57 2007 +0200 +++ b/src/objects-msw.c Mon Aug 13 10:58:40 2007 +0200 @@ -1497,9 +1497,6 @@ CHECK_STRING (document); - /* Just get the filename if we were given it. */ - document = Ffile_name_nondirectory (document); - if (NILP (current_dir)) current_dir = current_buffer->directory; @@ -1519,7 +1516,11 @@ if (STRINGP (document)) { GET_C_STRING_FILENAME_DATA_ALLOCA (document, f); +#ifdef __CYGWIN32__ + CYGWIN_WIN32_PATH (f, doc); +#else doc = f; +#endif } UNGCPRO; @@ -1537,9 +1538,9 @@ if (ret > 32) return Qt; - if (ret == ERROR_FILE_NOT_FOUND || ret == SE_ERR_FNF) + if (ret == ERROR_FILE_NOT_FOUND) signal_simple_error ("file not found", document); - else if (ret == ERROR_PATH_NOT_FOUND || ret == SE_ERR_PNF) + else if (ret == ERROR_PATH_NOT_FOUND) signal_simple_error ("path not found", current_dir); else if (ret == ERROR_BAD_FORMAT) signal_simple_error ("bad executable format", document);