Remove the get_hwnd() implementation from propset.c and reuse the
common one.
This commit is contained in:
parent
3af8a1e16f
commit
e3fb36140a
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue