mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 11:28:31 +00:00
fixed reference to PML_TransError
svn path=/trunk/; revision=19624
This commit is contained in:
parent
e0e1a6603f
commit
fe3aa7148f
1 changed files with 9 additions and 4 deletions
|
@ -114,13 +114,14 @@ int Ask (const WCHAR* question)
|
||||||
|
|
||||||
int SetStatus (int status1, int status2, WCHAR* text)
|
int SetStatus (int status1, int status2, WCHAR* text)
|
||||||
{
|
{
|
||||||
|
WCHAR errbuf[2000];
|
||||||
if(text)
|
if(text)
|
||||||
wprintf(L"%s\n", text);
|
wprintf(L"%s\n", text);
|
||||||
|
|
||||||
// If the Status is 1000 things are done
|
// If the Status is 1000 things are done
|
||||||
if(status1==1000)
|
if(status1==1000)
|
||||||
{
|
{
|
||||||
wprintf(L"%s\n", PML_TransError(status2));
|
wprintf(L"%s\n", PML_TransError(status2, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
|
||||||
done = TRUE;
|
done = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,12 +132,14 @@ int Install (void)
|
||||||
{
|
{
|
||||||
pTree tree;
|
pTree tree;
|
||||||
int i, error;
|
int i, error;
|
||||||
|
WCHAR errbuf[2000];
|
||||||
|
|
||||||
// load the tree
|
// load the tree
|
||||||
error = PML_LoadTree (&tree, "tree.xml", NULL);
|
error = PML_LoadTree (&tree, "tree.xml", NULL);
|
||||||
if(error)
|
if(error)
|
||||||
{
|
{
|
||||||
wprintf(PML_TransError(error));
|
|
||||||
|
wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -159,7 +162,8 @@ int Install (void)
|
||||||
error = PML_DoIt (tree, SetStatus, Ask);
|
error = PML_DoIt (tree, SetStatus, Ask);
|
||||||
if(error)
|
if(error)
|
||||||
{
|
{
|
||||||
wprintf(PML_TransError(error));
|
|
||||||
|
wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
|
||||||
PML_CloseTree (tree);
|
PML_CloseTree (tree);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -178,12 +182,13 @@ int Show (void)
|
||||||
{
|
{
|
||||||
pTree tree;
|
pTree tree;
|
||||||
int i, error;
|
int i, error;
|
||||||
|
WCHAR errbuf[2000];
|
||||||
|
|
||||||
// load the tree
|
// load the tree
|
||||||
error = PML_LoadTree (&tree, "tree.xml", NULL);
|
error = PML_LoadTree (&tree, "tree.xml", NULL);
|
||||||
if(error)
|
if(error)
|
||||||
{
|
{
|
||||||
wprintf(PML_TransError(error));
|
wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue