krnl386.exe16: pSeg might be NULL (Coverity).
This commit is contained in:
parent
8e5c79e439
commit
5574b64ede
|
@ -480,7 +480,7 @@ LPVOID DOSMEM_AllocBlock(UINT size, UINT16* pseg)
|
||||||
curr = DOSMEM_root_block;
|
curr = DOSMEM_root_block;
|
||||||
if (!(psp = DOSVM_psp)) psp = MCB_PSP_DOS;
|
if (!(psp = DOSVM_psp)) psp = MCB_PSP_DOS;
|
||||||
|
|
||||||
*pseg = 0;
|
if (pseg) *pseg = 0;
|
||||||
|
|
||||||
TRACE( "(%04xh)\n", size );
|
TRACE( "(%04xh)\n", size );
|
||||||
|
|
||||||
|
|
|
@ -362,7 +362,7 @@ HGLOBAL16 WINAPI GlobalReAlloc16(
|
||||||
newptr = 0;
|
newptr = 0;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
newptr = DOSMEM_AllocBlock( size, 0 );
|
newptr = DOSMEM_AllocBlock( size, NULL );
|
||||||
if (newptr)
|
if (newptr)
|
||||||
{
|
{
|
||||||
memcpy( newptr, ptr, oldsize );
|
memcpy( newptr, ptr, oldsize );
|
||||||
|
|
Loading…
Reference in New Issue