mirror of https://github.com/BOINC/boinc.git
- 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:
parent
7303c44f5e
commit
d5a1a5ebfd
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue