- Fixed the return value in VirtualQueryEx if NtQueryVirtualMemory returns an error.

svn path=/trunk/; revision=10061
This commit is contained in:
Hartmut Birr 2004-07-10 13:08:02 +00:00
parent 95e1a9b247
commit 7f900f8f7e

View file

@ -1,4 +1,4 @@
/* $Id: virtual.c,v 1.13 2004/06/13 10:35:52 navaraf Exp $
/* $Id: virtual.c,v 1.14 2004/07/10 13:08:02 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel
@ -198,7 +198,7 @@ VirtualQueryEx(HANDLE hProcess,
if (!NT_SUCCESS(Status))
{
SetLastErrorByStatus(Status);
return(ResultLength);
return 0;
}
return(ResultLength);
}