summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 3258830d6..354f241c6 100644
--- a/thread.c
+++ b/thread.c
@@ -17,7 +17,7 @@ void* OTTDJoinThread(Thread*) { return NULL; }
struct Thread {
TID thread;
- ThradFunc func;
+ ThreadFunc func;
void* arg;
void* ret;
};
@@ -98,7 +98,7 @@ void* OTTDJoinThread(Thread* t)
struct Thread {
HANDLE thread;
- ThradFunc func;
+ ThreadFunc func;
void* arg;
void* ret;
};
@@ -119,7 +119,7 @@ Thread* OTTDCreateThread(ThreadFunc function, void* arg)
t->func = function;
t->arg = arg;
- t->thread = CreateThread(NULL, 0, Proxy, arg, 0, &dwThreadId);
+ t->thread = CreateThread(NULL, 0, Proxy, t, 0, &dwThreadId);
if (t->thread != NULL) {
return t;