PackageManager: Depencies

svn path=/trunk/; revision=14576
This commit is contained in:
Maarten Bosma 2005-04-10 15:34:15 +00:00
parent 56ec91131c
commit e45867b698
8 changed files with 121 additions and 27 deletions

View file

@ -102,7 +102,7 @@ DWORD WINAPI DoitThread (void* lpParam)
// set all actions to none
for(i=0; i<tree->packages.size(); i++)
PML_SetAction (tree, i, 0, tree->setIcon);
PML_SetAction (tree, i, 0, tree->setIcon, NULL);
tree->setStatus(1000, ret, NULL);
@ -110,7 +110,7 @@ DWORD WINAPI DoitThread (void* lpParam)
}
// Do the actions the user wants us to do
extern "C" int PML_DoIt (TREE* tree, PML_SetStatus SetStatus)
extern "C" int PML_DoIt (TREE* tree, PML_SetStatus SetStatus, PML_Ask Ask)
{
DWORD dummy;
tree->setStatus = SetStatus;
@ -118,6 +118,14 @@ extern "C" int PML_DoIt (TREE* tree, PML_SetStatus SetStatus)
if(!tree->todo.size())
return ERR_NOTODO;
//ask
WCHAR buffer [2000];
wsprintf(buffer, PML_TransError(ERR_READY), tree->todo.size());
if(!Ask(buffer))
return ERR_GENERIC;
hThread = CreateThread(NULL, 0, DoitThread, tree, 0, &dummy);
if(!hThread)