mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Roel Messiant:
- Heap corruption fixes. svn path=/trunk/; revision=49332
This commit is contained in:
@@ -422,7 +422,7 @@ AllocateBuffers(PAPPINFO pInfo)
|
||||
|
||||
pInfo->RecvPacket = (PIPv4_HEADER)HeapAlloc(GetProcessHeap(),
|
||||
0,
|
||||
sizeof(IPv4_HEADER) + PACKET_SIZE);
|
||||
MAX_PING_PACKET_SIZE);
|
||||
if (!pInfo->RecvPacket)
|
||||
{
|
||||
HeapFree(GetProcessHeap(),
|
||||
|
||||
@@ -256,7 +256,7 @@ LdrpQueryAppPaths(IN PCWSTR ImageName)
|
||||
/* Copy it to the heap allocd memory */
|
||||
Path = RtlAllocateHeap(RtlGetProcessHeap(),
|
||||
0,
|
||||
wcslen(SearchPathBuffer) * sizeof(WCHAR));
|
||||
(wcslen(SearchPathBuffer) + 1) * sizeof(WCHAR));
|
||||
|
||||
if (!Path)
|
||||
{
|
||||
|
||||
@@ -2860,7 +2860,7 @@ Initialize(TcpipConfNotifyImpl * This)
|
||||
}
|
||||
pCurSettings->AutoconfigActive = pPerInfo->AutoconfigActive;
|
||||
}
|
||||
CoTaskMemFree(pInfo);
|
||||
CoTaskMemFree(pPerInfo);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user