Don't crash on close from window manager.
[wine/multimedia.git] / dlls / msvcrt / thread.c
blob6cc734b25c9d06977585387b62e669c8741ab167
1 /*
2 * msvcrt.dll thread functions
4 * Copyright 2000 Jon Griffiths
5 */
6 #include "msvcrt.h"
8 DEFAULT_DEBUG_CHANNEL(msvcrt);
11 /*********************************************************************
12 * _beginthreadex (MSVCRT.@)
14 unsigned long __cdecl MSVCRT__beginthreadex(void *sec,
15 unsigned int stack,
16 LPTHREAD_START_ROUTINE start,
17 void *arg, unsigned int flag,
18 unsigned int*addr)
20 TRACE("(%p,%d,%p,%p,%d,%p)\n",sec, stack,start, arg,flag,addr);
21 /* FIXME */
22 return CreateThread( sec, stack, (LPTHREAD_START_ROUTINE)start, arg,flag,(LPDWORD)addr);
25 /*********************************************************************
26 * _endthreadex (MSVCRT.@)
28 void __cdecl MSVCRT__endthreadex(unsigned int retval)
30 TRACE("(%d)\n",retval);
31 /* FIXME */
32 ExitThread(retval);