This commit is contained in:
luoliangyi 2024-10-21 17:30:37 +08:00
parent 8781af97df
commit 61c0cee1a5
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ struct HGDllImpl
HGResult HGAPI HGBase_CreateDll(const HGChar* fileName, HGDll* dll) HGResult HGAPI HGBase_CreateDll(const HGChar* fileName, HGDll* dll)
{ {
if (NULL == fileName || NULL == dll) if (NULL == fileName || 0 == *fileName || NULL == dll)
{ {
return HGBASE_ERR_INVALIDARG; return HGBASE_ERR_INVALIDARG;
} }

View File

@ -364,7 +364,7 @@ HGResult HGSaneSourceImpl::Open(const HGChar* saneManu, const HGChar* sanePath)
return HGBASE_ERR_INVALIDARG; return HGBASE_ERR_INVALIDARG;
} }
HGChar fileName[260]; HGChar fileName[260] = {0};
HGBase_GetFileName(sanePath, fileName, 260); HGBase_GetFileName(sanePath, fileName, 260);
HGDll dll = NULL; HGDll dll = NULL;