Reset the status variable on success (bug 5994, r=arkshine)
This commit is contained in:
parent
ce4ef6e272
commit
75822ec227
@ -218,6 +218,7 @@ const char * CLangMngr::CLang::GetDef(int key, int &status)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
status = 0;
|
||||||
return def.definition->c_str();
|
return def.definition->c_str();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -572,6 +573,7 @@ const char *CLangMngr::GetDef(const char *langName, const char *key, int &status
|
|||||||
status = ERR_BADKEY;
|
status = ERR_BADKEY;
|
||||||
return NULL;
|
return NULL;
|
||||||
} else {
|
} else {
|
||||||
|
status = 0;
|
||||||
return lang->GetDef(val.index, status);
|
return lang->GetDef(val.index, status);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user