| commit | bf9e3841e7caa25bd6539d9637923c16e5fee20f | [log] [tgz] |
|---|---|---|
| author | Mike Hearn <mike@theoretic.com> | Wed Jun 04 20:21:45 2003 +0000 |
| committer | Alexandre Julliard <julliard@winehq.org> | Wed Jun 04 20:21:45 2003 +0000 |
| tree | 56ad709aff7a02e2c815bd8524fe8637cdba8a4a | |
| parent | 3fc25446fe6bbe3e89059024c0147051b210ac3b [diff] |
Update listbox directory mode to new FindFirstFile error code.
diff --git a/controls/listbox.c b/controls/listbox.c index c122c2a..cb4e7b4 100644 --- a/controls/listbox.c +++ b/controls/listbox.c
@@ -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 {