[io-layer] Don't RC std handles or the current process on every lookup.
[mono.git] / mono / metadata / w32file-unix.c
index 734b43b41f629ccad056873ed12050c78d9db1a1..f6e4d2df5138873927882d9bd3cda436dcba411b 100644 (file)
@@ -3111,9 +3111,6 @@ mono_w32file_get_std_handle (gint stdhandle)
                        mono_w32error_set_last (ERROR_NO_MORE_FILES);
                        goto done;
                }
-       } else {
-               /* Add a reference to this handle */
-               mono_w32handle_ref (handle);
        }
        
   done: