diff --git a/Common/FileUtil.cpp b/Common/FileUtil.cpp index c6fbd73eff..a869389dd9 100644 --- a/Common/FileUtil.cpp +++ b/Common/FileUtil.cpp @@ -134,6 +134,7 @@ std::string ResolvePath(const std::string &path) { if (result >= BUF_SIZE || result == 0) wcscpy_s(buf, BUF_SIZE - 1, input.c_str()); } + CloseHandle(hFile); } else { wchar_t *longBuf = new wchar_t[BUF_SIZE]; memset(buf, 0, BUF_SIZE);