0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

updated for version 7.0-130

This commit is contained in:
Bram Moolenaar
2006-10-10 16:44:07 +00:00
parent 57ac3a2163
commit 043545e0f6
6 changed files with 56 additions and 1 deletions

View File

@@ -2702,6 +2702,12 @@ mch_nodetype(char_u *name)
HANDLE hFile;
int type;
/* We can't open a file with a name "\\.\con" or "\\.\prn" and trying to
* read from it later will cause Vim to hang. Thus return NODE_WRITABLE
* here. */
if (STRNCMP(name, "\\\\.\\", 4) == 0)
return NODE_WRITABLE;
hFile = CreateFile(name, /* file name */
GENERIC_WRITE, /* access mode */
0, /* share mode */