From 695c2c0a80de013c0e2abe234a9a71e80df9aa00 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 11 Aug 2011 04:07:19 -0700 Subject: [PATCH] Reference the format where it's used and make it const --- buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer.c b/buffer.c index 5060d34..c51fdff 100644 --- a/buffer.c +++ b/buffer.c @@ -995,7 +995,6 @@ static HRESULT WINAPI DS8Buffer_GetCaps(IDirectSoundBuffer8 *iface, DSBCAPS *cap static HRESULT WINAPI DS8Buffer_GetCurrentPosition(IDirectSoundBuffer8 *iface, DWORD *playpos, DWORD *curpos) { DS8Buffer *This = impl_from_IDirectSoundBuffer8(iface); - WAVEFORMATEX *format = &This->buffer->format.Format; UINT writecursor, pos; TRACE("(%p)->(%p, %p)\n", iface, playpos, curpos); @@ -1032,6 +1031,7 @@ static HRESULT WINAPI DS8Buffer_GetCurrentPosition(IDirectSoundBuffer8 *iface, D } else { + const WAVEFORMATEX *format = &This->buffer->format.Format; ALint status = 0; ALint ofs = 0; -- 2.11.4.GIT