summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/ldso/pe_find_framework_loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/pe_find_framework_loader.c b/src/ldso/pe_find_framework_loader.c
index 8096ea8..c138d32 100644
--- a/src/ldso/pe_find_framework_loader.c
+++ b/src/ldso/pe_find_framework_loader.c
@@ -69,7 +69,7 @@ int32_t pe_find_framework_loader(
wch_cap = basename + 512;
for (; *wch && wch<wch_cap; wch++)
- if ((*wch == '\\') != (*wch == '/'))
+ if ((*wch == '\\') || (*wch == '/'))
return OS_STATUS_INVALID_PARAMETER;
if (*wch)