diff --git a/DDrawCompat/Win32/Registry.cpp b/DDrawCompat/Win32/Registry.cpp index a9a4e0b..53315d1 100644 --- a/DDrawCompat/Win32/Registry.cpp +++ b/DDrawCompat/Win32/Registry.cpp @@ -265,7 +265,7 @@ namespace { case REG_SZ: src = value->str; - *length = (getLength(value->str) + (flags ? 1 : 0)) * sizeof(Char); + *length = (getLength(value->str) + 1) * sizeof(Char); break; default: