- MGR: Fix a casting issue that was causing crashes on x64 platforms.

fixes# 658 (From: bbaetz)
    
    clientgui/
        SkinManager.cpp

svn path=/trunk/boinc/; revision=15234
This commit is contained in:
Rom Walton 2008-05-16 16:45:54 +00:00
parent 7303c44f5e
commit d5a1a5ebfd
2 changed files with 11 additions and 4 deletions

View File

@ -4099,3 +4099,10 @@ David May 15 2008
sched/
handle_request.C
server_types.C
Rom May 16 2008
- MGR: Fix a casting issue that was causing crashes on x64 platforms.
fixes# 658 (From: bbaetz)
clientgui/
SkinManager.cpp

View File

@ -101,11 +101,11 @@ CSkinItem::~CSkinItem() {
wxColour CSkinItem::ParseColor(wxString strColor) {
int red, green, blue;
long red, green, blue;
wxStringTokenizer tkz(strColor, wxT(":"), wxTOKEN_RET_EMPTY);
wxString(tkz.GetNextToken()).ToLong((long*)&red);
wxString(tkz.GetNextToken()).ToLong((long*)&green);
wxString(tkz.GetNextToken()).ToLong((long*)&blue);
wxString(tkz.GetNextToken()).ToLong(&red);
wxString(tkz.GetNextToken()).ToLong(&green);
wxString(tkz.GetNextToken()).ToLong(&blue);
return wxColour((unsigned char)red, (unsigned char)green, (unsigned char)blue);
}