aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-06-01 11:07:58 +0100
committergingerBill <bill@gingerbill.org>2022-06-01 11:07:58 +0100
commit487bd3d9424479ffe3fb2638077232dbccafa0cf (patch)
treea6894c6a5ccaa80d24b5b5648a6f595e4203b0b2
parent4fac7a8f2794bbea08a455677b61296241617982 (diff)
Keep compiler happy
-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 49936e6f5..812513875 100644
--- a/src/microsoft_craziness.h
+++ b/src/microsoft_craziness.h
@@ -126,7 +126,7 @@ HANDLE mc_find_first(String wildcard, MC_Find_Data *find_data) {
bool mc_find_next(HANDLE handle, MC_Find_Data *find_data) {
WIN32_FIND_DATAW _find_data;
- bool success = FindNextFileW(handle, &_find_data);
+ bool success = !!FindNextFileW(handle, &_find_data);
find_data->file_attributes = _find_data.dwFileAttributes;
find_data->filename = mc_wstring_to_string(_find_data.cFileName);