Found the handle leak! Doh.

This commit is contained in:
Henrik Rydgård 2019-02-25 21:35:16 +01:00
parent 0cd3ac06d0
commit ff2c540e51

View file

@ -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);