diff options
author | José Fonseca <jfonseca@vmware.com> | 2015-03-26 22:15:26 +0000 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2015-03-27 11:23:29 +0000 |
commit | 34d919f45a5ee47c46d931cbaeee9e5030dc9c86 (patch) | |
tree | 2746886e26b56e6e48a597118a810ca724b96ccb /retrace/glws_wgl.cpp | |
parent | 3c3076c640081f3e8cd756440601bcd8ddc98a13 (diff) |
glws: Use _beginthreadex.
Diffstat (limited to 'retrace/glws_wgl.cpp')
-rw-r--r-- | retrace/glws_wgl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/retrace/glws_wgl.cpp b/retrace/glws_wgl.cpp index 6db86d5f..bedef98d 100644 --- a/retrace/glws_wgl.cpp +++ b/retrace/glws_wgl.cpp @@ -29,6 +29,8 @@ */ +#include <process.h> + #include <iostream> #include "glproc.hpp" @@ -106,7 +108,7 @@ struct WindowThreadParam }; -static DWORD WINAPI +static unsigned __stdcall windowThreadFunction( LPVOID _lpParam ) { WindowThreadParam *lpParam = (WindowThreadParam *)_lpParam; @@ -178,8 +180,7 @@ createWindow(int nWidth, int nHeight) param.nWidth = nWidth; param.nHeight = nHeight; param.hEvent = CreateEvent(NULL, FALSE, FALSE, NULL); - DWORD dwThreadId = 0; - CreateThread(NULL, 0, &windowThreadFunction, (LPVOID)¶m, 0, &dwThreadId); + _beginthreadex(NULL, 0, &windowThreadFunction, (LPVOID)¶m, 0, NULL); // Wait for window creation event WaitForSingleObject(param.hEvent, INFINITE); |