From f62d3729a387be799bc82960446abcf60d9287d4 Mon Sep 17 00:00:00 2001 From: "Hagb (Junyu Guo)" Date: Fri, 19 Jul 2024 03:21:35 +0800 Subject: [PATCH] Fix the incorrect argument of `FindClose`, which should be the handle --- swrstoys/SWRSToys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swrstoys/SWRSToys.cpp b/swrstoys/SWRSToys.cpp index 9c76a0e..60a989f 100644 --- a/swrstoys/SWRSToys.cpp +++ b/swrstoys/SWRSToys.cpp @@ -470,7 +470,7 @@ void importModulesFromFolder(byte hash[16], HMODULE this_module, const std::wstr modules.emplace_back(module_path.c_str(), hash, this_module); } } while (FindNextFileW(ret, &findData)); - FindClose(&findData); + FindClose(ret); } void loadModuleList(byte hash[16], HMODULE this_module)