krnl386.exe16: pSeg might be NULL (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-26 17:16:02 +02:00 committed by Alexandre Julliard
parent 8e5c79e439
commit 5574b64ede
2 changed files with 2 additions and 2 deletions

View file

@ -480,7 +480,7 @@ LPVOID DOSMEM_AllocBlock(UINT size, UINT16* pseg)
curr = DOSMEM_root_block;
if (!(psp = DOSVM_psp)) psp = MCB_PSP_DOS;
*pseg = 0;
if (pseg) *pseg = 0;
TRACE( "(%04xh)\n", size );

View file

@ -362,7 +362,7 @@ HGLOBAL16 WINAPI GlobalReAlloc16(
newptr = 0;
else
{
newptr = DOSMEM_AllocBlock( size, 0 );
newptr = DOSMEM_AllocBlock( size, NULL );
if (newptr)
{
memcpy( newptr, ptr, oldsize );