Resolve prefast warnings.