diff options
| author | gingerBill <bill@gingerbill.org> | 2022-06-01 11:07:58 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2022-06-01 11:07:58 +0100 |
| commit | 487bd3d9424479ffe3fb2638077232dbccafa0cf (patch) | |
| tree | a6894c6a5ccaa80d24b5b5648a6f595e4203b0b2 /src | |
| parent | 4fac7a8f2794bbea08a455677b61296241617982 (diff) | |
Keep compiler happy
Diffstat (limited to 'src')
| -rw-r--r-- | src/microsoft_craziness.h | 2 |
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); |