mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
Roel Messiant:
- Heap corruption fixes. svn path=/trunk/; revision=49332
This commit is contained in:
parent
7f008d8e60
commit
0b6aeda1ed
3 changed files with 3 additions and 3 deletions
|
@ -422,7 +422,7 @@ AllocateBuffers(PAPPINFO pInfo)
|
||||||
|
|
||||||
pInfo->RecvPacket = (PIPv4_HEADER)HeapAlloc(GetProcessHeap(),
|
pInfo->RecvPacket = (PIPv4_HEADER)HeapAlloc(GetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
sizeof(IPv4_HEADER) + PACKET_SIZE);
|
MAX_PING_PACKET_SIZE);
|
||||||
if (!pInfo->RecvPacket)
|
if (!pInfo->RecvPacket)
|
||||||
{
|
{
|
||||||
HeapFree(GetProcessHeap(),
|
HeapFree(GetProcessHeap(),
|
||||||
|
|
|
@ -256,7 +256,7 @@ LdrpQueryAppPaths(IN PCWSTR ImageName)
|
||||||
/* Copy it to the heap allocd memory */
|
/* Copy it to the heap allocd memory */
|
||||||
Path = RtlAllocateHeap(RtlGetProcessHeap(),
|
Path = RtlAllocateHeap(RtlGetProcessHeap(),
|
||||||
0,
|
0,
|
||||||
wcslen(SearchPathBuffer) * sizeof(WCHAR));
|
(wcslen(SearchPathBuffer) + 1) * sizeof(WCHAR));
|
||||||
|
|
||||||
if (!Path)
|
if (!Path)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2860,7 +2860,7 @@ Initialize(TcpipConfNotifyImpl * This)
|
||||||
}
|
}
|
||||||
pCurSettings->AutoconfigActive = pPerInfo->AutoconfigActive;
|
pCurSettings->AutoconfigActive = pPerInfo->AutoconfigActive;
|
||||||
}
|
}
|
||||||
CoTaskMemFree(pInfo);
|
CoTaskMemFree(pPerInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue