[Mono-bugs] [Bug 48222][Min] New - io.c:DeleteFile() does not call _wapi_set_last_error_from_errno() as it should

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 8 Sep 2003 11:50:40 -0400 (EDT)


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 richard.torkar@htu.se.

http://bugzilla.ximian.com/show_bug.cgi?id=48222

--- shadow/48222	2003-09-08 11:50:40.000000000 -0400
+++ shadow/48222.tmp.26578	2003-09-08 11:50:40.000000000 -0400
@@ -0,0 +1,32 @@
+Bug#: 48222
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: misc
+AssignedTo: dick@ximian.com                            
+ReportedBy: richard.torkar@htu.se               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: io.c:DeleteFile() does not call _wapi_set_last_error_from_errno() as it should
+
+Description of Problem:
+According to metadata/file-io.c, ves_icall_System_IO_MonoIO_DeleteFile() 
+should be able to do a GetLastError() to retrieve the latest "failure"
+caused by an underlying function (or?).
+
+If one then looks at io-layer/io.c:DeleteFile() we see that it does not
+call _wapi_set_last_error_from_errno(). MoveFile and CreateFile use that
+function though.
+
+I believe that _wapi_set_last_error_from_errno() should be implemented in
+DeleteFile() thus making ves_icall_System_IO_MonoIO_DeleteFile() being able
+to retrieve valid error results.
+
+<disclaimer>I'm no wapi-guru</discalimer>