From d02f400b312f932560be9da4771980a8d024766c Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Fri, 8 Oct 2004 21:37:16 +0000 Subject: [PATCH] little simplification svn path=/trunk/; revision=11239 --- reactos/lib/kernel32/process/session.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/reactos/lib/kernel32/process/session.c b/reactos/lib/kernel32/process/session.c index feebe7c6dab..efca3b33744 100644 --- a/reactos/lib/kernel32/process/session.c +++ b/reactos/lib/kernel32/process/session.c @@ -1,4 +1,4 @@ -/* $Id: session.c,v 1.7 2004/10/02 21:14:08 weiden Exp $ +/* $Id: session.c,v 1.8 2004/10/08 21:37:16 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -83,16 +83,9 @@ BOOL STDCALL ProcessIdToSessionId (IN DWORD dwProcessId, *pSessionId = SessionInformation.SessionId; return TRUE; } - else - { - SetLastErrorByStatus(Status); - } } - else - { - SetLastErrorByStatus(Status); - } - + + SetLastErrorByStatus(Status); return FALSE; }