This commit is contained in:
parent
8781af97df
commit
61c0cee1a5
|
@ -37,7 +37,7 @@ struct HGDllImpl
|
|||
|
||||
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;
|
||||
}
|
||||
|
|
|
@ -364,7 +364,7 @@ HGResult HGSaneSourceImpl::Open(const HGChar* saneManu, const HGChar* sanePath)
|
|||
return HGBASE_ERR_INVALIDARG;
|
||||
}
|
||||
|
||||
HGChar fileName[260];
|
||||
HGChar fileName[260] = {0};
|
||||
HGBase_GetFileName(sanePath, fileName, 260);
|
||||
|
||||
HGDll dll = NULL;
|
||||
|
|
Loading…
Reference in New Issue