removed not needed typecasts. thanks Thomas
Modified: trunk/rosapps/packmgr/cmd-line/main.c
Modified: trunk/rosapps/packmgr/gui/main.c

Modified: trunk/rosapps/packmgr/cmd-line/main.c
--- trunk/rosapps/packmgr/cmd-line/main.c	2005-11-26 10:38:42 UTC (rev 19626)
+++ trunk/rosapps/packmgr/cmd-line/main.c	2005-11-26 10:40:21 UTC (rev 19627)
@@ -121,7 +121,7 @@
 	// If the Status is 1000 things are done
 	if(status1==1000)
 	{
-		wprintf(L"%s\n", PML_TransError(status2, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
+		wprintf(L"%s\n", PML_TransError(status2, errbuf, sizeof(errbuf)/sizeof(WCHAR)));
 		done = TRUE;
 	}
 
@@ -139,7 +139,7 @@
 	if(error)
 	{
 
-		wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
+		wprintf(PML_TransError(error, errbuf, sizeof(errbuf)/sizeof(WCHAR)));
 		return 0;
 	}
 		
@@ -163,7 +163,7 @@
 	if(error)
 	{
 
-		wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
+		wprintf(PML_TransError(error, errbuf, sizeof(errbuf)/sizeof(WCHAR)));
 		PML_CloseTree (tree);
 		return 0;
 	}
@@ -188,7 +188,7 @@
 	error = PML_LoadTree (&tree, "tree.xml", NULL);
 	if(error)
 	{
-		wprintf(PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)));
+		wprintf(PML_TransError(error, errbuf, sizeof(errbuf)/sizeof(WCHAR)));
 		return 0;
 	}
 

Modified: trunk/rosapps/packmgr/gui/main.c
--- trunk/rosapps/packmgr/gui/main.c	2005-11-26 10:38:42 UTC (rev 19626)
+++ trunk/rosapps/packmgr/gui/main.c	2005-11-26 10:40:21 UTC (rev 19627)
@@ -79,7 +79,7 @@
 	
 	if(error)
 	{
-		MessageBox(0,PML_TransError(error, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)),0,0);
+		MessageBox(0,PML_TransError(error, errbuf, sizeof(errbuf)/sizeof(WCHAR)),0,0);
 		return 0;
 	}
 	
@@ -161,7 +161,7 @@
 	hTree = CreateWindowEx(0, WC_TREEVIEW, L"TreeView", WS_CHILD|WS_VISIBLE|WS_BORDER|TVS_HASLINES|TVS_LINESATROOT|TVS_HASBUTTONS, 
 							0, 0, 0, 0, hwnd, NULL, hinst, NULL);
 
-	hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, L"edit", PML_TransError(IDS_LOAD, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)), WS_CHILD|WS_VISIBLE|ES_MULTILINE, 
+	hEdit = CreateWindowEx(WS_EX_CLIENTEDGE, L"edit", PML_TransError(IDS_LOAD, errbuf, sizeof(errbuf)/sizeof(WCHAR)), WS_CHILD|WS_VISIBLE|ES_MULTILINE, 
 							0, 0, 100, 100, hwnd, NULL, hinst, NULL);
 	
 	hPopup = LoadMenu(hinst, MAKEINTRESOURCE(IDR_POPUP));
@@ -410,7 +410,7 @@
 	if(status1==1000)
 	{
 		EndDialog(hStatus, TRUE);
-		MessageBox(0,PML_TransError(status2, (WCHAR*)errbuf, sizeof(errbuf)/sizeof(WCHAR)),0,0);
+		MessageBox(0,PML_TransError(status2, errbuf, sizeof(errbuf)/sizeof(WCHAR)),0,0);
 	}
 
 	return 0;