LISTBOX_Directory() returns LB_OKAY for invalid directory /
filen ame
Alexandre Julliard
julliard at winehq.org
Fri Jun 18 13:20:24 CDT 2004
Krishna Murthy <Krishna.Murthy at 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 at winehq.org
More information about the wine-devel
mailing list