dplayx: Fix possible NULL pointer dereference (Coverity).
This commit is contained in:
parent
8f07e99ec5
commit
8348c9fa94
|
@ -3032,7 +3032,7 @@ static HRESULT WINAPI DP_IF_Receive
|
|||
}
|
||||
|
||||
/* Copy into the provided buffer */
|
||||
CopyMemory( lpData, lpMsg->msg, *lpdwDataSize );
|
||||
if (lpData) CopyMemory( lpData, lpMsg->msg, *lpdwDataSize );
|
||||
|
||||
return DP_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue