mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
krnl386.exe16: pSeg might be NULL (Coverity).
This commit is contained in:
parent
8e5c79e439
commit
5574b64ede
2 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue