[PATCH] dsound: make 1 function static, removed one no longer used array

Marcus Meissner meissner at suse.de
Mon Oct 3 19:38:06 CDT 2011


Hi,

the array was replaced by a list some way back, the function
can be static.

Ciao, Marcus
---
 dlls/dsound/capture.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 7569254..61a8228 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -822,8 +822,6 @@ static HRESULT IDirectSoundCaptureBufferImpl_Create(
 /*******************************************************************************
  * DirectSoundCaptureDevice
  */
-DirectSoundCaptureDevice * DSOUND_capture[MAXWAVEDRIVERS];
-
 static HRESULT DirectSoundCaptureDevice_Create(
     DirectSoundCaptureDevice ** ppDevice)
 {
@@ -880,8 +878,8 @@ static ULONG DirectSoundCaptureDevice_Release(
     return ref;
 }
 
-void CALLBACK DSOUND_capture_timer(UINT timerID, UINT msg, DWORD_PTR user,
-        DWORD_PTR dw1, DWORD_PTR dw2)
+static void CALLBACK DSOUND_capture_timer(UINT timerID, UINT msg, DWORD_PTR user,
+                                          DWORD_PTR dw1, DWORD_PTR dw2)
 {
     DirectSoundCaptureDevice *device = (DirectSoundCaptureDevice*)user;
     UINT32 packet_frames, packet_bytes, avail_bytes;
-- 
1.7.1




More information about the wine-patches mailing list