mirror of
https://github.com/reactos/reactos.git
synced 2025-04-21 12:40:33 +00:00
[NTOS]
- Fix bug in PnpRegSzToString. The caller expects the result length to be the length of the string in bytes, not the string length - Introduced in rev 46690 svn path=/trunk/; revision=52037
This commit is contained in:
parent
9048ea9dcf
commit
80f8e1b66c
1 changed files with 1 additions and 1 deletions
|
@ -178,7 +178,7 @@ PnpRegSzToString(IN PWCHAR RegSzData,
|
|||
for (p = RegSzData; p < pp; p++) if (!*p) break;
|
||||
|
||||
/* Return it */
|
||||
if (StringLength) *StringLength = p - RegSzData;
|
||||
if (StringLength) *StringLength = (p - RegSzData) * sizeof(WCHAR);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue