(svn r19075) -Codechange: unhackify NetworkChangeCompanyPassword()

This commit is contained in:
smatz
2010-02-10 15:17:27 +00:00
parent b91b3ac836
commit 73ed81b1c7
6 changed files with 31 additions and 22 deletions

View File

@@ -2285,10 +2285,7 @@ struct NetworkCompanyPasswordWindow : public QueryStringBaseWindow {
snprintf(_settings_client.network.default_company_pass, lengthof(_settings_client.network.default_company_pass), "%s", this->edit_str_buf);
}
/* empty password is a '*' because of console argument */
if (StrEmpty(this->edit_str_buf)) snprintf(this->edit_str_buf, this->edit_str_size, "*");
char *password = this->edit_str_buf;
NetworkChangeCompanyPassword(1, &password);
NetworkChangeCompanyPassword(this->edit_str_buf);
}
virtual void OnPaint()