From f49d7599ee65a5e408fa5ee2b5570dbeeb689edd Mon Sep 17 00:00:00 2001 From: vayne Date: Tue, 3 Apr 2007 15:57:55 +0000 Subject: thread compatibility fixes for Win9x. based on patch by sergemp at mail dot ru. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22907 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Gui/win32/interface.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Gui/win32') diff --git a/Gui/win32/interface.c b/Gui/win32/interface.c index dafdaa556b..4c165f037e 100644 --- a/Gui/win32/interface.c +++ b/Gui/win32/interface.c @@ -491,11 +491,14 @@ static DWORD WINAPI GuiThread(void) 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); -- cgit v1.2.3