summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/pe_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/pe_impl.c b/src/internal/pe_impl.c
index 594f23d..c586b63 100644
--- a/src/internal/pe_impl.c
+++ b/src/internal/pe_impl.c
@@ -36,7 +36,7 @@ int32_t pe_impl_strlen_utf16(const wchar16_t * str)
for (wch = (wchar16_t *)str; (wch < upper_bound) && (*wch); wch++);
if (wch < upper_bound)
- return (uint32_t)(wch - str);
+ return ((uint32_t)(wch - str)) * sizeof(wchar16_t);
else
return -1;
}