Author: jimtabor
Date: Mon Sep 24 06:58:22 2007
New Revision: 29172
URL:
http://svn.reactos.org/svn/reactos?rev=29172&view=rev
Log:
Make sure it is non zero.
Modified:
trunk/reactos/dll/win32/user32/misc/misc.c
Modified: trunk/reactos/dll/win32/user32/misc/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/misc/misc…
==============================================================================
--- trunk/reactos/dll/win32/user32/misc/misc.c (original)
+++ trunk/reactos/dll/win32/user32/misc/misc.c Mon Sep 24 06:58:22 2007
@@ -282,7 +282,8 @@
{
if(bConvert)
{
- if (NtUserGetThreadState(THREADSTATE_GETTHREADINFO)) return TRUE;
+ NtUserGetThreadState(THREADSTATE_GETTHREADINFO);
+ if ((PW32THREADINFO)NtCurrentTeb()->Win32ThreadInfo) return TRUE;
else
SetLastError(ERROR_NOT_ENOUGH_MEMORY);
}