Author: dick
Date: 2005-04-13 08:54:52 -0400 (Wed, 13 Apr 2005)
New Revision: 42918
Modified:
trunk/mono/mono/io-layer/ChangeLog
trunk/mono/mono/io-layer/io.c
Log:
2005-04-13 Dick Porter <[EMAIL PROTECTED]>
* io.c (FindFirstFile): Fix bugs introduced with the merge (bug
74586)
Modified: trunk/mono/mono/io-layer/ChangeLog
===================================================================
--- trunk/mono/mono/io-layer/ChangeLog 2005-04-13 12:32:46 UTC (rev 42917)
+++ trunk/mono/mono/io-layer/ChangeLog 2005-04-13 12:54:52 UTC (rev 42918)
@@ -1,3 +1,8 @@
+2005-04-13 Dick Porter <[EMAIL PROTECTED]>
+
+ * io.c (FindFirstFile): Fix bugs introduced with the merge (bug
+ 74586)
+
2005-04-12 Dick Porter <[EMAIL PROTECTED]>
The daemon-less io-layer. Extensive lowlevel changes in
Modified: trunk/mono/mono/io-layer/io.c
===================================================================
--- trunk/mono/mono/io-layer/io.c 2005-04-13 12:32:46 UTC (rev 42917)
+++ trunk/mono/mono/io-layer/io.c 2005-04-13 12:54:52 UTC (rev 42918)
@@ -2635,7 +2635,7 @@
gpointer FindFirstFile (const gunichar2 *pattern, WapiFindData *find_data)
{
struct _WapiHandle_find find_handle = {0};
- gpointer handle, find_ret = INVALID_HANDLE_VALUE;
+ gpointer handle;
gchar *utf8_pattern = NULL, *dir_part, *entry_part;
int result;
@@ -2715,7 +2715,6 @@
g_free (utf8_pattern);
g_free (entry_part);
g_free (dir_part);
- SetLastError (ERROR_GEN_FAILURE);
return (INVALID_HANDLE_VALUE);
}
@@ -2745,7 +2744,7 @@
!FindNextFile (handle, find_data)) {
FindClose (handle);
SetLastError (ERROR_NO_MORE_FILES);
- find_ret = INVALID_HANDLE_VALUE;
+ handle = INVALID_HANDLE_VALUE;
}
return (handle);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches