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

@ -74,7 +74,7 @@ public:
static void CreatePlatformConfigDir(std::string& in);
static void ResolveHomedir(std::string & temp_line);
static void CreateDir(std::string const& temp);
static bool Cross::IsPathAbsolute(std::string const& in);
static bool IsPathAbsolute(std::string const& in);
};

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.");

View file

@ -995,7 +995,7 @@ int CommandLine::GetParameterFromList(const char* const params[], std::vector<st
cmd_it it = cmds.begin();
while(it!=cmds.end()) {
bool found = false;
for(Bitu i = 0; params[i]!=""; i++) {
for(Bitu i = 0; *params[i]!=0; i++) {
if (!strcasecmp((*it).c_str(),params[i])) {
// found a parameter
found = true;