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:
parent
e3595a21de
commit
4f4b3be50c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue