thread.c
changeset 2287 2e556bae5fbb
parent 2286 acb76b379e72
child 2290 3283963c5422
--- a/thread.c	Fri Aug 05 11:53:48 2005 +0000
+++ b/thread.c	Fri Aug 05 20:18:08 2005 +0000
@@ -17,7 +17,7 @@
 
 struct Thread {
 	TID thread;
-	ThradFunc func;
+	ThreadFunc func;
 	void* arg;
 	void* ret;
 };
@@ -98,7 +98,7 @@
 
 struct Thread {
 	HANDLE thread;
-	ThradFunc func;
+	ThreadFunc func;
 	void* arg;
 	void* ret;
 };
@@ -119,7 +119,7 @@
 
 	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;