dplayx: Fix possible NULL pointer dereference (Coverity).

This commit is contained in:
Kai Blin 2008-09-10 11:20:09 +02:00 committed by Alexandre Julliard
parent 8f07e99ec5
commit 8348c9fa94
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}