From d3c514329292ce2abecd6a4e8c0024a3647c7771 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Tue, 15 Nov 2022 13:57:02 +0100 Subject: [PATCH] Fix microsoft_craziness.h --- src/microsoft_craziness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/microsoft_craziness.h b/src/microsoft_craziness.h index 7d23f2557..fc5f09904 100644 --- a/src/microsoft_craziness.h +++ b/src/microsoft_craziness.h @@ -108,7 +108,7 @@ HANDLE mc_find_first(String wildcard, MC_Find_Data *find_data) { defer (mc_free(wildcard_wide)); HANDLE handle = FindFirstFileW(wildcard_wide.text, &_find_data); - if (handle == INVALID_HANDLE_VALUE) return false; + if (handle == INVALID_HANDLE_VALUE) return INVALID_HANDLE_VALUE; find_data->file_attributes = _find_data.dwFileAttributes; find_data->filename = mc_wstring_to_string(_find_data.cFileName);