mirror of
https://github.com/modernw/App-Installer-For-Windows-8.x-Reset.git
synced 2026-04-11 17:57:19 +10:00
Fix bugs.
Update PkgCLI.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user