dplayx: Fix possible NULL pointer deference in error path (Coverity).

This commit is contained in:
Kai Blin 2008-09-10 12:03:29 +02:00 committed by Alexandre Julliard
parent 8348c9fa94
commit e738f6144e
1 changed files with 2 additions and 1 deletions

View File

@ -889,7 +889,8 @@ HRESULT DPLAYX_SetConnectionSettingsA
{
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;
}