mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 09:29:10 +00:00
(svn r2811) Fix typos in r2810
This commit is contained in:
6
thread.c
6
thread.c
@@ -17,7 +17,7 @@ void* OTTDJoinThread(Thread*) { return NULL; }
|
|||||||
|
|
||||||
struct Thread {
|
struct Thread {
|
||||||
TID thread;
|
TID thread;
|
||||||
ThradFunc func;
|
ThreadFunc func;
|
||||||
void* arg;
|
void* arg;
|
||||||
void* ret;
|
void* ret;
|
||||||
};
|
};
|
||||||
@@ -98,7 +98,7 @@ void* OTTDJoinThread(Thread* t)
|
|||||||
|
|
||||||
struct Thread {
|
struct Thread {
|
||||||
HANDLE thread;
|
HANDLE thread;
|
||||||
ThradFunc func;
|
ThreadFunc func;
|
||||||
void* arg;
|
void* arg;
|
||||||
void* ret;
|
void* ret;
|
||||||
};
|
};
|
||||||
@@ -119,7 +119,7 @@ Thread* OTTDCreateThread(ThreadFunc function, void* arg)
|
|||||||
|
|
||||||
t->func = function;
|
t->func = function;
|
||||||
t->arg = arg;
|
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) {
|
if (t->thread != NULL) {
|
||||||
return t;
|
return t;
|
||||||
|
Reference in New Issue
Block a user