Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/reflog-walk-maint' into jk/reflog-walk
[gitweb.git]
/
compat
/
mingw.c
diff --git
a/compat/mingw.c
b/compat/mingw.c
index c6134f7c810072106026577d8ee306df9311ef24..8b6fa0db446aee9888ff6484560131143c7e22e5 100644
(file)
--- a/
compat/mingw.c
+++ b/
compat/mingw.c
@@
-423,6
+423,8
@@
FILE *mingw_fopen (const char *filename, const char *otype)
return NULL;
}
file = _wfopen(wfilename, wotype);
+ if (!file && GetLastError() == ERROR_INVALID_NAME)
+ errno = ENOENT;
if (file && hide && set_hidden_flag(wfilename, 1))
warning("could not mark '%s' as hidden.", filename);
return file;