mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 19:26:16 +00:00
check for value > 0 before using it as array index
Fix for Coverity error CID: 438 svn path=/trunk/; revision=36485
This commit is contained in:
@@ -413,7 +413,8 @@ SetCurrencyDigNum(HWND hwndDlg, LCID lcid)
|
||||
(LPARAM)0);
|
||||
|
||||
/* Save number of digidts in field */
|
||||
SetLocaleInfo(lcid, LOCALE_SMONGROUPING, szFieldDigNumSamples[nCurrSel]);
|
||||
if (nCurrSel > 0)
|
||||
SetLocaleInfo(lcid, LOCALE_SMONGROUPING, szFieldDigNumSamples[nCurrSel]);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user