Repercutions of parameter type change in waitReceiveTaskEnd in win32
authoretisserant
Tue, 19 Feb 2008 15:21:42 +0100
changeset 406 92e28415d026
parent 405 487b37176423
child 407 384c3cd7afa2
Repercutions of parameter type change in waitReceiveTaskEnd in win32
drivers/timers_win32/timers_win32.cpp
--- a/drivers/timers_win32/timers_win32.cpp	Tue Feb 19 14:59:19 2008 +0100
+++ b/drivers/timers_win32/timers_win32.cpp	Tue Feb 19 15:21:42 2008 +0100
@@ -81,10 +81,10 @@
    *Thread = ::CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ReceiveLoopPtr, fd0, 0, &thread_id);
    }
 
-void WaitReceiveTaskEnd(TASK_HANDLE Thread)
-   {
-   ::WaitForSingleObject(Thread, INFINITE);
-   ::CloseHandle(Thread);
+void WaitReceiveTaskEnd(TASK_HANDLE *Thread)
+   {
+   ::WaitForSingleObject(*Thread, INFINITE);
+   ::CloseHandle(*Thread);
    //*Thread = NULL;
    }
 // --------------- CAN Receive Thread Implementation ---------------