mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 18:25:58 +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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue