summaryrefslogtreecommitdiff
path: root/os2.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-08-05 08:24:12 +0000
committertron <tron@openttd.org>2005-08-05 08:24:12 +0000
commita86e9689dfb969690dc1fcdcdde22506e5b4b94b (patch)
treeb50ada0cade250f81d3852f35d9bbe8bef601bae /os2.c
parent647fe2e8669d78de13f1098a6f2d0b5541bcbe70 (diff)
downloadopenttd-a86e9689dfb969690dc1fcdcdde22506e5b4b94b.tar.xz
(svn r2807) Fix two major bugs in the threaded save code:
- Do not dereference a local variable which no longer exists; this lead to random crashes when saving - (Win32) Do not close a handle before it is used last There are still many major problems (race conditions and resulting memory corruption/crashes) left
Diffstat (limited to 'os2.c')
-rw-r--r--os2.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/os2.c b/os2.c
index 1e8039363..468c01c55 100644
--- a/os2.c
+++ b/os2.c
@@ -647,12 +647,6 @@ bool CreateOTTDThread(void *func, void *param)
return(true);
}
-void CloseOTTDThread(void)
-{
- _endthread();
- return;
-}
-
void JoinOTTDThread(void)
{
if (thread1 == 0)