Re: LISTBOX_Directory() returns LB_OKAY for invalid directory / filen ame
18 Jun
2004
18 Jun
'04
7:20 p.m.
Krishna Murthy <Krishna.Murthy(a)guptaworldwide.com> writes:
diff -u -r1.103 listbox.c --- wine/controls/listbox.c 1 Apr 2004 04:57:12 -0000 1.103 +++ wine/controls/listbox.c 17 Jun 2004 21:50:20 -0000 @@ -1760,7 +1760,7 @@ if ((handle = FindFirstFileW(filespec, &entry)) == INVALID_HANDLE_VALUE) { int le = GetLastError(); - if ((le != ERROR_NO_MORE_FILES) && (le != ERROR_FILE_NOT_FOUND)) return LB_ERR; + if ((le != ERROR_NO_MORE_FILES) || (le != ERROR_FILE_NOT_FOUND)) return LB_ERR;
This makes the test completely useless, it can't be right. -- Alexandre Julliard julliard(a)winehq.org
7850
Age (days ago)
7850
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard