aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2008-08-05 20:19:13 -0700
committerChris Robinson <[email protected]>2008-08-05 20:19:13 -0700
commitc1cf9ae8f6afdea81f1adc84cde628062ff6c6d9 (patch)
tree9ce1ba6eb0d235ea78c32c653cc65aa3f39b520f
parentf1414c650ed209f9ac0a21949a95f4617b6842ce (diff)
Pass a dummy variable to CreateThread to satisfy Win9x
-rw-r--r--Alc/alcThread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/alcThread.c b/Alc/alcThread.c
index 2d49a468..a749bd71 100644
--- a/Alc/alcThread.c
+++ b/Alc/alcThread.c
@@ -47,13 +47,14 @@ static DWORD CALLBACK StarterFunc(void *ptr)
ALvoid *StartThread(ALuint (*func)(ALvoid*), ALvoid *ptr)
{
+ DWORD dummy;
ThreadInfo *inf = malloc(sizeof(ThreadInfo));
if(!inf) return 0;
inf->func = func;
inf->ptr = ptr;
- inf->thread = CreateThread(NULL, 0, StarterFunc, inf, 0, NULL);
+ inf->thread = CreateThread(NULL, 0, StarterFunc, inf, 0, &dummy);
if(!inf->thread)
{
free(inf);