mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 10:30:59 +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:
parent
649b40cd13
commit
d82ca9895d
|
@ -413,6 +413,7 @@ SetCurrencyDigNum(HWND hwndDlg, LCID lcid)
|
||||||
(LPARAM)0);
|
(LPARAM)0);
|
||||||
|
|
||||||
/* Save number of digidts in field */
|
/* Save number of digidts in field */
|
||||||
|
if (nCurrSel > 0)
|
||||||
SetLocaleInfo(lcid, LOCALE_SMONGROUPING, szFieldDigNumSamples[nCurrSel]);
|
SetLocaleInfo(lcid, LOCALE_SMONGROUPING, szFieldDigNumSamples[nCurrSel]);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue