Reset the status variable on success (bug 5994, r=arkshine)

This commit is contained in:
Lev 2014-04-30 15:42:03 +02:00
parent ce4ef6e272
commit 75822ec227

View File

@ -218,6 +218,7 @@ const char * CLangMngr::CLang::GetDef(int key, int &status)
return NULL;
}
status = 0;
return def.definition->c_str();
}
@ -572,6 +573,7 @@ const char *CLangMngr::GetDef(const char *langName, const char *key, int &status
status = ERR_BADKEY;
return NULL;
} else {
status = 0;
return lang->GetDef(val.index, status);
}
}