1
0
Fork 0

GCC compilation and test for empty string fix related to the config patch.

Thanks TeaRex and ripsaw8080 for reporting.

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3652
This commit is contained in:
Ralf Grillenberger 2010-10-29 21:18:44 +00:00
parent 143beec6b1
commit ec1fbccb4d
3 changed files with 4 additions and 4 deletions

View file

@ -459,10 +459,10 @@ void CONFIG::Run(void) {
std::string propvalues;
std::vector<Value> pv = p->GetValues();
if (p->Get_type()==Value::Etype::V_BOOL) {
if (p->Get_type()==Value::V_BOOL) {
// possible values for boolean are true, false
propvalues += "true, false";
} else if (p->Get_type()==Value::Etype::V_INT) {
} else if (p->Get_type()==Value::V_INT) {
// print min, max for integer values if used
Prop_int* pint = dynamic_cast <Prop_int*>(p);
if (pint==NULL) E_Exit("Int property dynamic cast failed.");