check for correct prefix in hex property decoding

This commit is contained in:
krawthekrow 2018-06-27 15:02:19 -04:00 committed by jacob1
parent a3a3b3be1a
commit 143ba20191

View File

@ -109,7 +109,7 @@ void PropertyWindow::SetProperty()
//0xC0FFEE //0xC0FFEE
v = value.Substr(2).ToNumber<unsigned int>(Format::Hex()); v = value.Substr(2).ToNumber<unsigned int>(Format::Hex());
} }
else if(value.length() > 1 && value.BeginsWith("0")) else if(value.length() > 1 && value.BeginsWith("#"))
{ {
//#C0FFEE //#C0FFEE
v = value.Substr(1).ToNumber<unsigned int>(Format::Hex()); v = value.Substr(1).ToNumber<unsigned int>(Format::Hex());