aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-02-07 16:14:27 -0800
committerChris Robinson <[email protected]>2016-02-07 16:14:27 -0800
commitf4fa41487c18ece49fddb512e3d9253e6eb1e92b (patch)
tree0b7df9ba19b469b63afb176cbc4b535782db2fad /Alc/backends
parent6105d36fd79357053b8bbe7af207a58be8a73f04 (diff)
Replace some CreateEvent calls with CreateEventW
Diffstat (limited to 'Alc/backends')
-rw-r--r--Alc/backends/dsound.c2
-rw-r--r--Alc/backends/mmdevapi.c12
2 files changed, 7 insertions, 7 deletions
diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c
index f27ab37b..c01e42ae 100644
--- a/Alc/backends/dsound.c
+++ b/Alc/backends/dsound.c
@@ -357,7 +357,7 @@ static ALCenum ALCdsoundPlayback_open(ALCdsoundPlayback *self, const ALCchar *de
}
hr = DS_OK;
- self->NotifyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
+ self->NotifyEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
if(self->NotifyEvent == NULL)
hr = E_FAIL;
diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c
index 0134a46c..c47ddee6 100644
--- a/Alc/backends/mmdevapi.c
+++ b/Alc/backends/mmdevapi.c
@@ -672,8 +672,8 @@ static ALCenum ALCmmdevPlayback_open(ALCmmdevPlayback *self, const ALCchar *devi
{
HRESULT hr = S_OK;
- self->NotifyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
- self->MsgEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
+ self->NotifyEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
+ self->MsgEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
if(self->NotifyEvent == NULL || self->MsgEvent == NULL)
{
ERR("Failed to create message events: %lu\n", GetLastError());
@@ -1308,8 +1308,8 @@ static ALCenum ALCmmdevCapture_open(ALCmmdevCapture *self, const ALCchar *device
{
HRESULT hr = S_OK;
- self->NotifyEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
- self->MsgEvent = CreateEvent(NULL, FALSE, FALSE, NULL);
+ self->NotifyEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
+ self->MsgEvent = CreateEventW(NULL, FALSE, FALSE, NULL);
if(self->NotifyEvent == NULL || self->MsgEvent == NULL)
{
ERR("Failed to create message events: %lu\n", GetLastError());
@@ -1739,7 +1739,7 @@ static BOOL MMDevApiLoad(void)
ThreadRequest req;
InitResult = E_FAIL;
- req.FinishedEvt = CreateEvent(NULL, FALSE, FALSE, NULL);
+ req.FinishedEvt = CreateEventW(NULL, FALSE, FALSE, NULL);
if(req.FinishedEvt == NULL)
ERR("Failed to create event: %lu\n", GetLastError());
else
@@ -1796,7 +1796,7 @@ static void ALCmmdevBackendFactory_probe(ALCmmdevBackendFactory* UNUSED(self), e
{
ThreadRequest req = { NULL, 0 };
- req.FinishedEvt = CreateEvent(NULL, FALSE, FALSE, NULL);
+ req.FinishedEvt = CreateEventW(NULL, FALSE, FALSE, NULL);
if(req.FinishedEvt == NULL)
ERR("Failed to create event: %lu\n", GetLastError());
else