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

common one.
This commit is contained in:
Francois Gouget 2004-09-08 19:07:57 +00:00 committed by Alexandre Julliard
parent 3af8a1e16f
commit e3fb36140a
1 changed files with 2 additions and 8 deletions

View File

@ -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)
{