mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 07:42:59 +00:00
don't use the pointer if it's NULL...
svn path=/trunk/; revision=9831
This commit is contained in:
parent
94c3ee3a6a
commit
a1c2b75227
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*
|
*
|
||||||
* $Id: focus.c,v 1.23 2004/06/20 22:25:14 gvg Exp $
|
* $Id: focus.c,v 1.24 2004/06/23 15:38:07 weiden Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <w32k.h>
|
#include <w32k.h>
|
||||||
|
@ -452,7 +452,7 @@ NtUserSetFocus(HWND hWnd)
|
||||||
if (Window->Style & (WS_MINIMIZE | WS_DISABLED))
|
if (Window->Style & (WS_MINIMIZE | WS_DISABLED))
|
||||||
{
|
{
|
||||||
IntReleaseWindowObject(Window);
|
IntReleaseWindowObject(Window);
|
||||||
return ThreadQueue ? 0 : ThreadQueue->FocusWindow;
|
return (ThreadQueue ? ThreadQueue->FocusWindow : 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Window->MessageQueue != ThreadQueue)
|
if (Window->MessageQueue != ThreadQueue)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue