aboutsummaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/mingw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/mingw.c b/win32/mingw.c
index 182e3d4db..11ae09043 100644
--- a/win32/mingw.c
+++ b/win32/mingw.c
@@ -177,7 +177,7 @@ int get_dev_type(const char *filename)
177 return NOT_DEVICE; 177 return NOT_DEVICE;
178} 178}
179 179
180void update_dev_fd(int dev, int fd) 180void update_special_fd(int dev, int fd)
181{ 181{
182 if (dev == DEV_ZERO) 182 if (dev == DEV_ZERO)
183 zero_fd = fd; 183 zero_fd = fd;
@@ -206,7 +206,7 @@ int mingw_open (const char *filename, int oflags, ...)
206 206
207 fd = open(filename, oflags&~O_SPECIAL, mode); 207 fd = open(filename, oflags&~O_SPECIAL, mode);
208 if (fd >= 0) { 208 if (fd >= 0) {
209 update_dev_fd(dev, fd); 209 update_special_fd(dev, fd);
210 } 210 }
211 else if ((oflags & O_ACCMODE) != O_RDONLY && errno == EACCES) { 211 else if ((oflags & O_ACCMODE) != O_RDONLY && errno == EACCES) {
212 DWORD attrs = GetFileAttributes(filename); 212 DWORD attrs = GetFileAttributes(filename);