fixed reference to PML_TransError
Modified: trunk/rosapps/packmgr/cmd-line/main.c

Modified: trunk/rosapps/packmgr/cmd-line/main.c
--- trunk/rosapps/packmgr/cmd-line/main.c	2005-11-26 10:18:24 UTC (rev 19623)
+++ trunk/rosapps/packmgr/cmd-line/main.c	2005-11-26 10:20:35 UTC (rev 19624)
@@ -114,13 +114,14 @@
 	
 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 @@
 {
 	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 @@
 	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 @@
 {
 	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;
 	}