[Mono-bugs] [Bug 72255][Nor] New - File.Exists throws IOException for invalid filename

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 6 Feb 2005 04:39:31 -0500 (EST)

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen@pandora.be.


--- shadow/72255	2005-02-06 04:39:31.000000000 -0500
+++ shadow/72255.tmp.25051	2005-02-06 04:39:31.000000000 -0500
@@ -0,0 +1,29 @@
+Bug#: 72255
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gert.driesen@pandora.be               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+Summary: File.Exists throws IOException for invalid filename
+On Windows, when an invalid filename is passed to File.Exists, the 
+following exception is thrown:
+Unhandled Exception: System.IO.IOException: Win32 IO returned 123. Path: ?
+in <0x00092> System.IO.File:Exists (string)
+in <0x0000c> EntryPoint:Main ()
+When using MS.NET, no exception is reported.
+I've attached a patch that fixes this issue. Can someone review it ?