check the status code NtQueryInformationProcess returned

svn path=/trunk/; revision=11737
This commit is contained in:
Thomas Bluemel 2004-11-21 11:03:17 +00:00
parent f290137ce4
commit afc7938b56

View file

@ -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: autochk.c,v 1.5 2004/11/21 10:39:12 weiden Exp $ /* $Id: autochk.c,v 1.6 2004/11/21 11:03:17 weiden Exp $
* *
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -79,7 +79,8 @@ NtProcessStartup(PPEB Peb)
&DeviceMap, &DeviceMap,
sizeof(DeviceMap), sizeof(DeviceMap),
NULL); NULL);
if(NT_SUCCESS(Status))
{
for (i = 0; i < 26; i++) for (i = 0; i < 26; i++)
{ {
if ((DeviceMap.Query.DriveMap & (1 << i)) && if ((DeviceMap.Query.DriveMap & (1 << i)) &&
@ -90,6 +91,7 @@ NtProcessStartup(PPEB Peb)
} }
} }
PrintString("\n"); PrintString("\n");
}
NtTerminateProcess(NtCurrentProcess(), 0); NtTerminateProcess(NtCurrentProcess(), 0);
} }