fix bug in canclose for win32
authorgreg
Thu, 28 Aug 2008 14:55:32 +0200
changeset 514 5ecc8f8090cb
parent 513 f0343a7457b8
child 515 62b6520332e9
fix bug in canclose for win32
drivers/win32/win32.cpp
--- a/drivers/win32/win32.cpp	Thu Aug 28 14:28:41 2008 +0200
+++ b/drivers/win32/win32.cpp	Thu Aug 28 14:55:32 2008 +0200
@@ -207,8 +207,8 @@
 			d->canHandle = NULL;
 			data->continue_receive_thread = false;}
 		  LeaveMutex();
+		  (*s_driver_procs.m_canClose)(data->inst);
 		  WaitReceiveTaskEnd(&data->receive_thread);
-		  (*s_driver_procs.m_canClose)(data->inst);
 		  delete data;
 		  return 0;
       }