summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shim.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shim.c b/shim.c
index caa05d89..7cd41821 100644
--- a/shim.c
+++ b/shim.c
@@ -63,7 +63,7 @@ static UINT8 in_protocol;
#define perror(fmt, ...) ({ \
UINTN __perror_ret = 0; \
- if (in_protocol) \
+ if (!in_protocol) \
__perror_ret = Print((fmt), ##__VA_ARGS__); \
__perror_ret; \
})