[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    Fix listbox directory regression
From:       Mike Hearn <mike () theoretic ! com>
Date:       2003-05-28 19:45:30
[Download RAW message or body]

Fixes bug #1435, regression caused by my earlier patch to change the
FindFirstFile error code to what NT and 98 return.

ChangeLog:
Update listbox directory mode to new FindFirstFile error code.




["listbox.patch" (listbox.patch)]

Index: controls/listbox.c
===================================================================
RCS file: /home/wine/wine/controls/listbox.c,v
retrieving revision 1.93
diff -u -r1.93 listbox.c
--- controls/listbox.c	8 Apr 2003 19:41:52 -0000	1.93
+++ controls/listbox.c	28 May 2003 19:43:19 -0000
@@ -1732,7 +1732,8 @@
         /* scan directory */
         if ((handle = FindFirstFileW(filespec, &entry)) == INVALID_HANDLE_VALUE)
         {
-            if (GetLastError() != ERROR_NO_MORE_FILES) return LB_ERR;
+	     int le = GetLastError();
+            if ((le != ERROR_NO_MORE_FILES) && (le != ERROR_FILE_NOT_FOUND)) return LB_ERR;
         }
         else
         {


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic