removed not needed typecasts. thanks Thomas
authorSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Sat, 26 Nov 2005 10:40:21 +0000 (10:40 +0000)
committerSebastian Gasiorek <sebastian.gasiorek@reactos.org>
Sat, 26 Nov 2005 10:40:21 +0000 (10:40 +0000)
svn path=/trunk/; revision=19627

rosapps/packmgr/cmd-line/main.c
rosapps/packmgr/gui/main.c

index 437eac5..946046c 100644 (file)
@@ -121,7 +121,7 @@ int SetStatus (int status1, int status2, WCHAR* text)
        // 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 @@ int Install (void)
        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 @@ int Install (void)
        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 @@ int Show (void)
        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;
        }
 
index a7d90ca..d0332b1 100644 (file)
@@ -79,7 +79,7 @@ int WINAPI WinMain (HINSTANCE hinst, HINSTANCE hPrevInstance, PSTR szCmdLine, in
        
        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 @@ void InitControls (HWND hwnd)
        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 @@ int SetStatus (int status1, int status2, WCHAR* text)
        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;