This commit is contained in:
parent
377dad1541
commit
0cb203fb7e
|
@ -162,7 +162,7 @@ HGResult HGSaneManagerImpl::OpenSource(HGUInt index, class HGSaneSourceImpl **so
|
|||
|
||||
HGResult HGSaneManagerImpl::OpenDefaultSource(HGSaneSourceImpl **sourceImpl)
|
||||
{
|
||||
if (NULL == sourceImpl)
|
||||
if (m_vSource.empty() || NULL == sourceImpl)
|
||||
{
|
||||
return HGBASE_ERR_INVALIDARG;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue