summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_dsound.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-07 21:33:14 +0100
committerwm4 <wm4@nowhere>2015-01-07 21:42:44 +0100
commitf61b8b312d251f9c8dd33d03d1566fd73019bf08 (patch)
treea75dbd7b94e403be08ec09c72fbd74178096d315 /audio/out/ao_dsound.c
parent5f398831d2aac9f65bc3499101f529fa51eebdf7 (diff)
downloadmpv-f61b8b312d251f9c8dd33d03d1566fd73019bf08.tar.bz2
mpv-f61b8b312d251f9c8dd33d03d1566fd73019bf08.tar.xz
win32: request UTF-16 API variants, Vista+ APIs, and COM C macros
Put the Vista+ (_WIN32_WINNT) and the COM C (COBJMACROS) defines into the build system, instead of defining them over and over in the code.
Diffstat (limited to 'audio/out/ao_dsound.c')
-rw-r--r--audio/out/ao_dsound.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/out/ao_dsound.c b/audio/out/ao_dsound.c
index b5d8c61bcc..825e3095df 100644
--- a/audio/out/ao_dsound.c
+++ b/audio/out/ao_dsound.c
@@ -228,7 +228,7 @@ static int LoadDirectSound(struct ao *ao)
struct priv *p = ao->priv;
// initialize directsound
- p->hdsound_dll = LoadLibrary("DSOUND.DLL");
+ p->hdsound_dll = LoadLibrary(L"DSOUND.DLL");
if (p->hdsound_dll == NULL) {
MP_ERR(ao, "cannot load DSOUND.DLL\n");
return 0;