Proper fix for the RC_WARN error codes. Broken in commit f983525f56 (PR #336). ZD18641

pull/378/head
David Garske 2024-09-13 10:04:01 -07:00
parent 6020acfe4e
commit d7f1e48669
1 changed files with 1 additions and 1 deletions

View File

@ -5746,7 +5746,7 @@ const char* TPM2_GetRCString(int rc)
return "Success";
}
if ((rc & RC_WARN) && (rc & RC_FMT1) == 0 && (rc & RC_VER1) == 0) {
if ((rc & RC_WARN) == RC_WARN && (rc & RC_FMT1) == 0) {
int rc_warn = rc & RC_MAX_WARN;
switch (rc_warn) {