From 1c9f69d9290ed0f3c4cbbc1ad450595091df3043 Mon Sep 17 00:00:00 2001 From: cascade Date: Fri, 9 Feb 2007 20:13:24 +0000 Subject: [PATCH] OCC13817, OCC13143, OCC13648 WOK improvements --- src/EDL/EDL_Interpretor.cxx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/EDL/EDL_Interpretor.cxx b/src/EDL/EDL_Interpretor.cxx index 14c63af..ccc2cd5 100755 --- a/src/EDL/EDL_Interpretor.cxx +++ b/src/EDL/EDL_Interpretor.cxx @@ -147,9 +147,15 @@ EDL_Error EDL_Interpretor::Parse(const Standard_CString aFile) if (aFile != NULL) { FILE *fic = 0L; DirCount = 1; - - if ( ( fic = fopen ( aFile, "r" ) ) != NULL ) { - IsFound = Standard_True; +#ifndef WNT + if( !access(aFile, F_OK) ) +#else + if ( GetFileAttributes(aFile) != 0xFFFFFFFF ) +#endif + { + if ( ( fic = fopen ( aFile, "r" ) ) != NULL ) { + IsFound = Standard_True; + } } while (!IsFound && DirCount <= IncludeDirectory->Length()) { -- 2.39.5