[Mono-devel-list] Re: [PATCH] Bug 74586 (and other oddities with the beta)

Bill Middleton flashdict at gmail.com
Thu Apr 14 04:10:10 EDT 2005


I found a much better solution to this bug by looking at the 1.1.16
source.  The problem turns out to be that FindFirstFile() doesn't
properly return INVALID_FILE_HANDLE when scanning an empty directory
or pattern that has no matches.

Here's a better patch.  I hope I'm getting closer here... :)

Bill


Index: mono/io-layer/io.c
===================================================================
--- mono/io-layer/io.c  (revision 42986)
+++ mono/io-layer/io.c  (working copy)
@@ -2745,7 +2745,7 @@
            !FindNextFile (handle, find_data)) {
                FindClose (handle);
                SetLastError (ERROR_NO_MORE_FILES);
-               find_ret = INVALID_HANDLE_VALUE;
+               return(INVALID_HANDLE_VALUE);
        }

        return (handle);




On 4/14/05, Bill Middleton <flashdict at gmail.com> wrote:
> On 4/13/05, Bill Middleton <flashdict at gmail.com> wrote:

[Gibberish]



More information about the Mono-devel-list mailing list