From bf9e3841e7caa25bd6539d9637923c16e5fee20f Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Wed, 4 Jun 2003 20:21:45 +0000 Subject: [PATCH] Update listbox directory mode to new FindFirstFile error code. --- controls/listbox.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controls/listbox.c b/controls/listbox.c index c122c2afc72..cb4e7b41eeb 100644 --- a/controls/listbox.c +++ b/controls/listbox.c @@ -1732,7 +1732,8 @@ static LRESULT LISTBOX_Directory( HWND hwnd, LB_DESCR *descr, UINT attrib, /* 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 {