From 6832f91958e6c2cc44a8c4a4e126ea20b8c8d5a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Tue, 30 Aug 2022 02:19:56 +0200 Subject: Fix Unique Good, Bad. Simplify HTML parser. Good and Bad should obviously do the exact opposite thing to what they did. --- c/ext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c/ext.cpp') diff --git a/c/ext.cpp b/c/ext.cpp index 8e58ade..694581d 100644 --- a/c/ext.cpp +++ b/c/ext.cpp @@ -87,7 +87,7 @@ static bool FindMatchingFile(wchar_t (&file)[MAX_PATH], const wchar_t* const roo WIN32_FIND_DATA fdata; Unique h = FindFirstFileW(pat, &fdata); - if (!h.Bad(INVALID_HANDLE_VALUE)) + if (h.Bad(INVALID_HANDLE_VALUE)) throw Win32Error(); do -- cgit v1.2.3