[mapguide-commits] r6323 - sandbox/adsk/2.2gp/Common/Foundation/System

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Fri Dec 9 01:34:18 EST 2011


Author: hubu
Date: 2011-12-08 22:34:18 -0800 (Thu, 08 Dec 2011)
New Revision: 6323

Modified:
   sandbox/adsk/2.2gp/Common/Foundation/System/FileUtil.cpp
Log:
On behalf of Andy Zhang.
Fix ticket #1884 http://trac.osgeo.org/mapguide/ticket/1884.

Modified: sandbox/adsk/2.2gp/Common/Foundation/System/FileUtil.cpp
===================================================================
--- sandbox/adsk/2.2gp/Common/Foundation/System/FileUtil.cpp	2011-12-08 20:58:31 UTC (rev 6322)
+++ sandbox/adsk/2.2gp/Common/Foundation/System/FileUtil.cpp	2011-12-09 06:34:18 UTC (rev 6323)
@@ -788,7 +788,7 @@
 
     int errCode = ACE_OS::unlink(MG_WCHAR_TO_TCHAR(pathname));
 
-    if (0 != errCode)
+    if (0 != errCode && strict)
     {
         errCode = errno; // This is not thread safe - requires guard
         MgStringCollection arguments;



More information about the mapguide-commits mailing list