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:
Gregory Hainaut 2015-09-10 17:06:03 +02:00
parent e6d1a4cccf
commit 2430abed33
1 changed files with 2 additions and 1 deletions

View File

@ -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()