summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-05 20:18:08 +0000
committertron <tron@openttd.org>2005-08-05 20:18:08 +0000
commita8e53be6b9a063cbce7525001f134277da7cffb6 (patch)
tree3919f34af4a4615c0d10fde13343ee2f0116276c
parentc78af95d1d3ed714d365fc9d9005e39f926bfb80 (diff)
downloadopenttd-a8e53be6b9a063cbce7525001f134277da7cffb6.tar.xz
(svn r2811) Fix typos in r2810
-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;