try to fix bugs.

This commit is contained in:
Bruce
2026-04-10 12:16:12 +08:00
parent f563f97f12
commit ded9ea9293
4 changed files with 28 additions and 1 deletions

View File

@@ -224,7 +224,7 @@ typedef class prifile
{
LPWSTR lpstr = nullptr;
reltask release ([&lpstr] () {
if (lpstr) free (lpstr);
if (lpstr) PriFormatFreeString (lpstr);
lpstr = nullptr;
});
lpstr = GetPriResource (m_hPriFile, resname.c_str ());