mirror of https://github.com/PCSX2/pcsx2.git
gsdx: potential division by zero
CID 146833 (#2-1 of 2): Division or modulo by zero (DIVIDE_BY_ZERO) divide_by_zero: In expression this->m_width / this->m_upscale_multiplier, division by expression this->m_upscale_multiplier which may be zero has undefined behavior.
This commit is contained in:
parent
e6d1a4cccf
commit
2430abed33
|
@ -81,7 +81,8 @@ void GSRendererHW::SetScaling() {
|
|||
}
|
||||
|
||||
|
||||
printf("Frame buffer size set to %dx%d (%dx%d)\n", (m_width / m_upscale_multiplier), (m_height / m_upscale_multiplier), m_width, m_height);
|
||||
if (m_upscale_multiplier)
|
||||
printf("Frame buffer size set to %dx%d (%dx%d)\n", (m_width / m_upscale_multiplier), (m_height / m_upscale_multiplier), m_width, m_height);
|
||||
}
|
||||
|
||||
GSRendererHW::~GSRendererHW()
|
||||
|
|
Loading…
Reference in New Issue