summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2003-11-25 00:00:22 +0000
committerpixel <pixel>2003-11-25 00:00:22 +0000
commitbc33774a3e6954cd0847002ff347064ae88abeeb (patch)
tree3b0edfb94bfff3f264532b7d25ffe1b2e9c9e9c6
parent75990b099a68c377c244a6c0cba59522f487991a (diff)
Test méchant...
-rw-r--r--lib/Input.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index 6c7815f..fdff787 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -165,11 +165,23 @@ int Input::wrapopen(const String & fname, openresults_t * results) {
}
}
results->name = "";
+#if 0
return open(fname.to_charp(), O_RDONLY
#ifdef _WIN32
| O_BINARY
#endif
);
+#else
+ HANDLE hFile = CreateFile(
+ fname.to_charp(),
+ GENERIC_READ,
+ 0,
+ 0,
+ OPEN_EXISTING,
+ 0,
+ 0);
+ return _open_osfhandle((INT_PTR) hFile, O_RDONLY);
+#endif
}
void Input::SetZ(int l) throw(GeneralException) {