From fe3aa7148f9dbd1df135eca2a2131ff6cbefb46f Mon Sep 17 00:00:00 2001 From: Sebastian Gasiorek Date: Sat, 26 Nov 2005 10:20:35 +0000 Subject: [PATCH] fixed reference to PML_TransError svn path=/trunk/; revision=19624 --- rosapps/packmgr/cmd-line/main.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/rosapps/packmgr/cmd-line/main.c b/rosapps/packmgr/cmd-line/main.c index 0cbd6df21b4..437eac5f219 100644 --- a/rosapps/packmgr/cmd-line/main.c +++ b/rosapps/packmgr/cmd-line/main.c @@ -114,13 +114,14 @@ int Ask (const WCHAR* question) int SetStatus (int status1, int status2, WCHAR* text) { + WCHAR errbuf[2000]; if(text) wprintf(L"%s\n", text); // If the Status is 1000 things are done 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; } @@ -131,12 +132,14 @@ int Install (void) { pTree tree; int i, error; + WCHAR errbuf[2000]; // load the tree error = PML_LoadTree (&tree, "tree.xml", NULL); if(error) { - wprintf(PML_TransError(error)); + + wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR))); return 0; } @@ -159,7 +162,8 @@ int Install (void) error = PML_DoIt (tree, SetStatus, Ask); if(error) { - wprintf(PML_TransError(error)); + + wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR))); PML_CloseTree (tree); return 0; } @@ -178,12 +182,13 @@ int Show (void) { pTree tree; int i, error; + WCHAR errbuf[2000]; // load the tree error = PML_LoadTree (&tree, "tree.xml", NULL); if(error) { - wprintf(PML_TransError(error)); + wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR))); return 0; } -- 2.17.1