* Fixed compilation for win64. ThreadID is DWORD on both win32 and win64.

git-svn-id: trunk@13235 -
This commit is contained in:
yury 2009-06-05 14:59:42 +00:00
parent b5be9e008e
commit 3b32571557

View File

@ -181,7 +181,7 @@ CONST
creationFlags : dword;var ThreadId : TThreadID) : TThreadID;
var
ti : pthreadinfo;
_threadid : TThreadID;
_threadid : dword;
begin
{$ifdef DEBUG_MT}
writeln('Creating new thread');
@ -203,7 +203,7 @@ CONST
{$ifdef DEBUG_MT}
writeln('Starting new thread');
{$endif DEBUG_MT}
_threadid:=ThreadID;
_threadid:=0;
SysBeginThread:=CreateThread(sa,stacksize,@ThreadMain,ti,creationflags,_threadid);
{ creation failed? if yes, we dispose the parameter record }