mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
- Fix one error case to prevent crashes when registry enumeration fails.
svn path=/trunk/; revision=11236
This commit is contained in:
parent
1e09759df9
commit
4664a1f6ed
1 changed files with 4 additions and 1 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: resource.c,v 1.19 2004/08/15 16:39:03 chorns Exp $
|
||||
/* $Id: resource.c,v 1.20 2004/10/08 21:20:35 navaraf Exp $
|
||||
*
|
||||
* PROJECT: ReactOS kernel
|
||||
* FILE: ntoskrnl/io/resource.c
|
||||
|
@ -383,7 +383,10 @@ IopQueryDeviceDescription(
|
|||
Status = ZwQueryValueKey(PeripheralKeyHandle, &PeripheralString, KeyValueFullInformation, NULL, 0, &LenKeyFullInformation);
|
||||
|
||||
if(!NT_SUCCESS(Status) && Status != STATUS_BUFFER_TOO_SMALL && Status != STATUS_BUFFER_OVERFLOW)
|
||||
{
|
||||
PeripheralInformation[PeripheralLoop] = NULL;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* Allocate it */
|
||||
PeripheralInformation[PeripheralLoop] = ExAllocatePoolWithTag(PagedPool, LenKeyFullInformation, TAG_IO_RESOURCE);
|
||||
|
|
Loading…
Reference in a new issue