From 7916ca314b928894ec8c731c8a4fdf9001417f04 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 13 Oct 1999 12:31:21 +0000 Subject: [PATCH] Don't ref NULL ptrs in debug. --- multimedia/dsound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/multimedia/dsound.c b/multimedia/dsound.c index ed4b8a21154..61f7de78cee 100644 --- a/multimedia/dsound.c +++ b/multimedia/dsound.c @@ -1001,7 +1001,7 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCurrentPosition( TRACE("(%p,%p,%p)\n",This,playpos,writepos); if (playpos) *playpos = This->playpos; if (writepos) *writepos = This->writepos; - TRACE("playpos = %ld, writepos = %ld\n", *playpos, *writepos); + TRACE("playpos = %ld, writepos = %ld\n", playpos?*playpos:0, writepos?*writepos:0); return DS_OK; }