projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21734ef
)
ExpandEnvironmentStrings returns the number of TCHARs, not bytes
author
Gé van Geldorp
<ge@gse.nl>
Fri, 30 Dec 2005 23:42:04 +0000
(23:42 +0000)
committer
Gé van Geldorp
<ge@gse.nl>
Fri, 30 Dec 2005 23:42:04 +0000
(23:42 +0000)
svn path=/trunk/; revision=20471
reactos/subsys/system/services/config.c
patch
|
blob
|
history
diff --git
a/reactos/subsys/system/services/config.c
b/reactos/subsys/system/services/config.c
index
8e23f92
..
24c0138
100644
(file)
--- a/
reactos/subsys/system/services/config.c
+++ b/
reactos/subsys/system/services/config.c
@@
-269,7
+269,7
@@
ScmReadString(HKEY hServiceKey,
dwError = GetLastError();
\r
goto done;
\r
}
\r
- expanded = HeapAlloc(GetProcessHeap(), 0, dwSizeNeeded);
\r
+ expanded = HeapAlloc(GetProcessHeap(), 0, dwSizeNeeded
* sizeof(WCHAR)
);
\r
if (dwSizeNeeded < ExpandEnvironmentStringsW((LPCWSTR)ptr, expanded, dwSizeNeeded))
\r
{
\r
dwError = GetLastError();
\r