if parsing of the boolean string was successful.
Also, initialize the local result variable
(although not strictly necessary anymore, now.)
(This used to be commit
bf0daa74fadcd506b80c29d04ccf6ec7345ee0e1)
BOOL value;
bRetval = True;
+ value = False;
if (strwicmp(pszParmValue, "yes") == 0 ||
strwicmp(pszParmValue, "true") == 0 ||
strwicmp(pszParmValue, "1") == 0)
bRetval = False;
}
- if (pb != NULL) {
+ if ((pb != NULL) && (bRetval != False)) {
*pb = value;
}