mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 16:43:08 +00:00
[RAPPS]
Mind the null terminator. Spotted by dmex. ROSAPPS-237 #resolve #comment Fixed in r60198. Thank you. svn path=/trunk/; revision=60198
This commit is contained in:
parent
7b412f0a4d
commit
ac5205086d
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ RichEditOnLink(HWND hwnd, ENLINK *Link)
|
||||||
pLink = (PWSTR) HeapAlloc(GetProcessHeap(),
|
pLink = (PWSTR) HeapAlloc(GetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
(max(Link->chrg.cpMin, Link->chrg.cpMax) -
|
(max(Link->chrg.cpMin, Link->chrg.cpMax) -
|
||||||
min(Link->chrg.cpMin, Link->chrg.cpMax))*sizeof(WCHAR));
|
min(Link->chrg.cpMin, Link->chrg.cpMax) + 1) * sizeof(WCHAR));
|
||||||
if (!pLink)
|
if (!pLink)
|
||||||
{
|
{
|
||||||
/* TODO: Error message */
|
/* TODO: Error message */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue