commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r789608 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
Date Tue, 30 Jun 2009 08:23:34 GMT
Author: mturk
Date: Tue Jun 30 08:23:33 2009
New Revision: 789608

URL: http://svn.apache.org/viewvc?rev=789608&view=rev
Log:
No need to ckeck for foward slashes. They are already replaced by backward

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c?rev=789608&r1=789607&r2=789608&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c Tue Jun 30 08:23:33 2009
@@ -152,8 +152,7 @@
         if (ACR_FileTypeGet(NULL, J2W(target)) == ACR_FT_DIR) {
             dwFlags = SYMBOLIC_LINK_FLAG_DIRECTORORY;
         }
-        else if (tlen > 0 && (J2W(target)[tlen - 1 ] == L'\\' ||
-                              J2W(target)[tlen - 1 ] == L'/')) {
+        else if (tlen > 0 && J2W(target)[tlen - 1 ] == L'\\') {
             dwFlags = SYMBOLIC_LINK_FLAG_DIRECTORORY;
         }
         if (ACR_HAVE_LATE_DLL_FUNC(CreateSymbolicLinkW)) {



Mime
View raw message