mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:25:55 +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(),
|
||||
0,
|
||||
(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)
|
||||
{
|
||||
/* TODO: Error message */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue