From b9d7ec228b03e2978b0e1d9f21dadd56b2f405e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 29 Aug 2022 23:33:48 +0200 Subject: Small improvments. --- 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 398804e..8e58ade 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.Not(INVALID_HANDLE_VALUE)) + if (!h.Bad(INVALID_HANDLE_VALUE)) throw Win32Error(); do -- cgit v1.2.3