From e3fb36140aceee77c272010d8ec1efcf3f451e3a Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Wed, 8 Sep 2004 19:07:57 +0000 Subject: [PATCH] Remove the get_hwnd() implementation from propset.c and reuse the common one. --- dlls/dsound/tests/propset.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/dlls/dsound/tests/propset.c b/dlls/dsound/tests/propset.c index 15aaf5550ef..9219d972136 100644 --- a/dlls/dsound/tests/propset.c +++ b/dlls/dsound/tests/propset.c @@ -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 @@ error: 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) { -- 2.11.4.GIT