summaryrefslogtreecommitdiff
path: root/src/os_mswin.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_mswin.c')
-rw-r--r--src/os_mswin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os_mswin.c b/src/os_mswin.c
index bd38e9d3f..9767a5b07 100644
--- a/src/os_mswin.c
+++ b/src/os_mswin.c
@@ -2343,8 +2343,8 @@ enum_windows_toplevel(HWND hwnd, LPARAM lParam)
{
struct enum_windows_s *ew = (struct enum_windows_s *)lParam;
- if ((ew->lpEnumFunc)(hwnd, ew->lParam) == FALSE)
- return FALSE;
+ if ((ew->lpEnumFunc)(hwnd, ew->lParam))
+ return TRUE;
return EnumChildWindows(hwnd, enum_windows_child, lParam);
}