aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2022-11-15 13:57:02 +0100
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2022-11-15 13:57:02 +0100
commitd3c514329292ce2abecd6a4e8c0024a3647c7771 (patch)
treef62cb1c82f6454f68c95a4576b47c563e4d81ef7 /src
parent9ed4f95c1a4bd8eb5965bf3685ed0bf82142be7a (diff)
Fix microsoft_craziness.h
Diffstat (limited to 'src')
-rw-r--r--src/microsoft_craziness.h2
1 files changed, 1 insertions, 1 deletions
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);