When GetProfile(“Replace”,mstr) didn’t find a match, it returned a NULL. Added check so that if it returned a NULL, the “as is” procedure number is used.

This commit is contained in:
John Jenko 2012-07-12 13:08:09 +00:00
parent c2210b98f2
commit 2c10b3843b

View File

@ -205,7 +205,9 @@ namespace VEPROMS.CSLA.Library
// GetPrivateProfileString("replace", mstr, mstr, tonum, 24, "set.ini");
// TODO: NOT SURE IF SET.INI AND PROC.INI HAVE UNIQUE GROUP NAMES!!!!!!!
mstr = GetProfile("Replace", mstr);
//mstr = GetProfile("Replace", mstr);
mstr = GetProfile("Replace", mstr, true); // true allow it to return a null if not found
if (mstr == null) retvalu = str; // no replacement, use procedure number as is
}
else
{