From: vsr Date: Wed, 9 Sep 2009 16:51:43 +0000 (+0000) Subject: Issue 0020472: An error in SALOMEDSImpl_Tool::Exists X-Git-Tag: V5_1_3rc1~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e71062fb69534a43e6762c9b7caea19c33b5e2d6;p=modules%2Fkernel.git Issue 0020472: An error in SALOMEDSImpl_Tool::Exists --- diff --git a/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx b/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx index 898d8d67e..a77876658 100644 --- a/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx +++ b/src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx @@ -54,7 +54,7 @@ bool Exists(const string thePath) { #ifdef WIN32 if ( GetFileAttributes ( thePath.c_str() ) == 0xFFFFFFFF ) { - if ( GetLastError () != ERROR_FILE_NOT_FOUND ) { + if ( GetLastError () == ERROR_FILE_NOT_FOUND ) { return false; } }