You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/30 10:23:34 UTC

svn commit: r789608 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/file.c

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)) {