dplayx: First name server address may be null.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2017-06-06 05:41:55 +00:00 committed by Alexandre Julliard
parent e3595a21de
commit 4f4b3be50c
1 changed files with 4 additions and 1 deletions

View File

@ -163,7 +163,10 @@ LPVOID NS_GetNSAddr( LPVOID lpNSInfo )
* in place.
*/
#if 1
return lpCache->first.lpQHFirst->lpNSAddrHdr;
if ( lpCache->first.lpQHFirst )
return lpCache->first.lpQHFirst->lpNSAddrHdr;
return NULL;
#else
/* FIXME: Should convert over to this */
return lpCache->bNsIsLocal ? lpCache->lpLocalAddrHdr