Remove get_hwnd() from propset.c

Francois Gouget fgouget at codeweavers.com
Wed Sep 8 06:37:09 CDT 2004


Changelog:

  * dlls/dsound/tests/propset.c

    Remove the get_hwnd() implementation from propset.c and reuse the 
common one.

-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: dlls/dsound/tests/propset.c
===================================================================
RCS file: /var/cvs/wine/dlls/dsound/tests/propset.c,v
retrieving revision 1.8
diff -u -r1.8 propset.c
--- dlls/dsound/tests/propset.c	23 Aug 2004 17:50:31 -0000	1.8
+++ dlls/dsound/tests/propset.c	8 Sep 2004 10:49:08 -0000
@@ -34,6 +34,8 @@
 #include "dsconf.h"
 #include "dxerr8.h"
 
+#include "dsound_test.h"
+
 #ifndef DSBCAPS_CTRLDEFAULT
 #define DSBCAPS_CTRLDEFAULT \
         DSBCAPS_CTRLFREQUENCY|DSBCAPS_CTRLPAN|DSBCAPS_CTRLVOLUME
@@ -253,14 +255,6 @@
     FreeLibrary(hDsound);
 }
 
-static HWND get_hwnd()
-{
-    HWND hwnd=GetForegroundWindow();
-    if (!hwnd)
-        hwnd=GetDesktopWindow();
-    return hwnd;
-}
-
 static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
                                    LPCSTR lpcstrModule, LPVOID lpContext)
 {


More information about the wine-patches mailing list