解决维护工具不能修改密码的问题

This commit is contained in:
luoliangyi 2022-11-16 08:47:23 +08:00
parent d638073de8
commit 94bb821804
1 changed files with 1 additions and 0 deletions

View File

@ -517,6 +517,7 @@ void MainWindow::on_btnModifyPassword_clicked()
{ {
HGChar cfgPath[256]= {0}; HGChar cfgPath[256]= {0};
HGBase_GetConfigPath(cfgPath, 256); HGBase_GetConfigPath(cfgPath, 256);
HGBase_CreateDir(cfgPath);
strcat(cfgPath, "config.ini"); strcat(cfgPath, "config.ini");
HGChar str[256] = {0}; HGChar str[256] = {0};
HGBase_GetProfileString(cfgPath, "login", "password", "", str, 256); HGBase_GetProfileString(cfgPath, "login", "password", "", str, 256);