Commit e3fb3614 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

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

common one.
parent 3af8a1e1
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment