Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[coverity] fixes #8346

merged 5 commits into from Nov 6, 2015

[coverity] CID#1262133 fix possible div-by-zero in Autorun.cpp

  • Loading branch information...
mkortstiege committed Nov 4, 2015
commit 3f7e54e5748a15db78fc5a36d8f5dac0b40fc548
@@ -277,7 +277,8 @@ bool CAutorun::RunDisc(IDirectory* pDir, const std::string& strDrive, int& nAdde
asize = asize + items[j]->m_dwSize;
asize = asize / ecount;
if (ecount > 0)
asize = asize / ecount;
// Put largest files in alphabetical order to top of new list.
for (int j = 0; j < items.Size(); j++)
if (items[j]->m_dwSize >= asize)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.