mirror of
https://github.com/reactos/reactos.git
synced 2024-08-30 15:18:33 +00:00
Make sure it is non zero.
svn path=/trunk/; revision=29172
This commit is contained in:
parent
82ad159967
commit
f924fa55c9
|
@ -282,7 +282,8 @@ IsGUIThread(
|
||||||
{
|
{
|
||||||
if(bConvert)
|
if(bConvert)
|
||||||
{
|
{
|
||||||
if (NtUserGetThreadState(THREADSTATE_GETTHREADINFO)) return TRUE;
|
NtUserGetThreadState(THREADSTATE_GETTHREADINFO);
|
||||||
|
if ((PW32THREADINFO)NtCurrentTeb()->Win32ThreadInfo) return TRUE;
|
||||||
else
|
else
|
||||||
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue