dplayx: Fix possible NULL pointer deference in error path (Coverity).
This commit is contained in:
parent
8348c9fa94
commit
e738f6144e
|
@ -889,7 +889,8 @@ HRESULT DPLAYX_SetConnectionSettingsA
|
||||||
{
|
{
|
||||||
DPLAYX_ReleaseSemaphore();
|
DPLAYX_ReleaseSemaphore();
|
||||||
|
|
||||||
ERR("DPSESSIONDESC passed in? Size=%u\n", lpConn->lpSessionDesc->dwSize );
|
ERR("DPSESSIONDESC passed in? Size=%u\n",
|
||||||
|
lpConn->lpSessionDesc?lpConn->lpSessionDesc->dwSize:0 );
|
||||||
|
|
||||||
return DPERR_INVALIDPARAMS;
|
return DPERR_INVALIDPARAMS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue