gtk interfaces: use GetCurrentThreadID to compare with MainThreadId, GetThreadID somehow returns a different value, fixes issue #14335)

git-svn-id: trunk@21622 -
This commit is contained in:
vincents 2009-09-08 12:21:54 +00:00
parent 463fff0bb4
commit 18ea81f368

View File

@ -7434,7 +7434,7 @@ begin
FMessageQueue.AddMessage(AMessage);
if GetThreadID <> MainThreadID then
if GetCurrentThreadId <> MainThreadID then
begin
// awake gtk loop
// when the main thread is currently processing messages it will process