gsdx: check for null deference.

CID 146839 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)11. var_deref_model: Passing null pointer fb_pages to UsePages, which dereferences it.

CID 146840 (#1 of 1): Explicit null dereferenced (FORWARD_NULL)11. var_deref_model: Passing null pointer zb_pages to UsePages, which dereferences it.

* Prevent a potential null pointer deference in ```void GSRendererSW::UsePages()```
This commit is contained in:
Akash 2015-10-14 21:19:05 +05:30
parent 4d680b73dc
commit 04b765a674
1 changed files with 2 additions and 2 deletions

View File

@ -1572,12 +1572,12 @@ void GSRendererSW::SharedData::UsePages(const uint32* fb_pages, int fpsm, const
{
//TransactionScope scope(s_lock);
if(global.sel.fb)
if(global.sel.fb && fb_pages != NULL)
{
m_parent->UsePages(fb_pages, 0);
}
if(global.sel.zb)
if(global.sel.zb && zb_pages != NULL)
{
m_parent->UsePages(zb_pages, 1);
}