diff --git a/modules/base/HGIni.cpp b/modules/base/HGIni.cpp index b235ffff..f322db92 100644 --- a/modules/base/HGIni.cpp +++ b/modules/base/HGIni.cpp @@ -311,6 +311,7 @@ HGResult HGAPI HGBase_GetProfileInt(const HGChar* fileName, const HGChar* appNam HGResult ret = readStringValue(appName, keyName, strRet, strDef, fileName); if (HGBASE_ERR_OK != ret) { + *value = def; return ret; }