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:
parent
c2210b98f2
commit
2c10b3843b
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user