Mercurial > vim
diff src/os_win32.c @ 1004:09d0e83c29b8 v7.0.130
updated for version 7.0-130
author | vimboss |
---|---|
date | Tue, 10 Oct 2006 16:44:07 +0000 |
parents | 2c885fab04e3 |
children | 279c4c3b0c3d |
line wrap: on
line diff
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -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 */