mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
4d680b73dc
commit
04b765a674
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue