Fix bugs.

Update PkgCLI.
This commit is contained in:
Bruce
2026-04-08 23:32:11 +08:00
parent c4eaa4ad45
commit 71c8d76593
11 changed files with 3142 additions and 14 deletions

View File

@@ -381,6 +381,7 @@ void DestroyPriFileInstance (PCSPRIFILE pFilePri)
if (!pFilePri) return;
try
{
#ifdef ELDER_FUNC
CreateScopedLock (g_threadlock);
auto it = g_tasklist.find (pFilePri);
if (it != g_tasklist.end ())
@@ -388,6 +389,7 @@ void DestroyPriFileInstance (PCSPRIFILE pFilePri)
it->second.bIsRunning = false;
g_tasklist.erase (it);
}
#endif
IntPtr handlePtr = IntPtr (pFilePri);
System::Runtime::InteropServices::GCHandle handle = System::Runtime::InteropServices::GCHandle::FromIntPtr (handlePtr);
PriFileInst ^inst = safe_cast <PriFileInst ^> (handle.Target);