From e71062fb69534a43e6762c9b7caea19c33b5e2d6 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 9 Sep 2009 16:51:43 +0000 Subject: [PATCH] Issue 0020472: An error in SALOMEDSImpl_Tool::Exists --- src/SALOMEDSImpl/SALOMEDSImpl_Tool.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.2