changeset 22889:d78278e1ece6

thread compatibility fixes for Win9x. based on patch by sergemp at mail dot ru.
author vayne
date Tue, 03 Apr 2007 15:57:55 +0000
parents 43b8a7c3595c
children 3a738b9f35f1
files Gui/win32/interface.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Gui/win32/interface.c	Tue Apr 03 13:16:46 2007 +0000
+++ b/Gui/win32/interface.c	Tue Apr 03 15:57:55 2007 +0000
@@ -491,11 +491,14 @@
 
 void guiInit(void)
 {
+    DWORD threadId;
     memset(&guiIntfStruct, 0, sizeof(guiIntfStruct));
     /* Create The gui thread */
     if (!mygui)
-        mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n",
-              (int) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) GuiThread, NULL, 0, NULL));
+    {
+        CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE) GuiThread, NULL, 0, &threadId);
+        mp_msg(MSGT_GPLAYER, MSGL_V, "[GUI] Creating GUI Thread 0x%04x\n", threadId);
+    }
 
     /* Wait until the gui is created */
     while(!mygui) Sleep(100);