From bc33774a3e6954cd0847002ff347064ae88abeeb Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 25 Nov 2003 00:00:22 +0000 Subject: Test méchant... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Input.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) { -- cgit v1.2.3