wininet: Make WININET_AllocHandle 64-bit safe by using the correct type in the sizeof expression.
This commit is contained in:
parent
2fb89a4e36
commit
573abdca4a
|
@ -113,7 +113,7 @@ HINTERNET WININET_AllocHandle( LPWININETHANDLEHEADER info )
|
|||
{
|
||||
num = HANDLE_CHUNK_SIZE;
|
||||
p = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
sizeof (UINT)* num);
|
||||
sizeof (*WININET_Handles)* num);
|
||||
if( !p )
|
||||
goto end;
|
||||
WININET_Handles = p;
|
||||
|
@ -123,7 +123,7 @@ HINTERNET WININET_AllocHandle( LPWININETHANDLEHEADER info )
|
|||
{
|
||||
num = WININET_dwMaxHandles + HANDLE_CHUNK_SIZE;
|
||||
p = HeapReAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY,
|
||||
WININET_Handles, sizeof (UINT)* num);
|
||||
WININET_Handles, sizeof (*WININET_Handles)* num);
|
||||
if( !p )
|
||||
goto end;
|
||||
WININET_Handles = p;
|
||||
|
|
Loading…
Reference in New Issue