< prev index next >

src/java.base/windows/native/libnio/fs/WindowsNativeDispatcher.c

Print this page

        

@@ -175,18 +175,10 @@
 
 
     if (len == 0) {
         return NULL;
     } else {
-        if (len > 3) {
-            // Drop final '.', CR, LF
-            if (message[len - 1] == L'\n') len--;
-            if (message[len - 1] == L'\r') len--;
-            if (message[len - 1] == L'.') len--;
-            message[len] = L'\0';
-        }
-
         return (*env)->NewString(env, (const jchar *)message, (jsize)wcslen(message));
     }
 }
 
 JNIEXPORT void JNICALL
< prev index next >