svn path=/trunk/; revision=2261
This commit is contained in:
David Welch 2001-09-27 02:14:35 +00:00
parent 387d128462
commit decca5781a
2 changed files with 49 additions and 4 deletions

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: resource.c,v 1.7 2001/09/05 09:21:47 ekohl Exp $ /* $Id: resource.c,v 1.8 2001/09/27 02:14:34 dwelch Exp $
* *
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/io/resource.c * FILE: ntoskrnl/io/resource.c
@ -103,7 +103,51 @@ IoQueryDeviceDescription(PINTERFACE_TYPE BusType,
PIO_QUERY_DEVICE_ROUTINE CalloutRoutine, PIO_QUERY_DEVICE_ROUTINE CalloutRoutine,
PVOID Context) PVOID Context)
{ {
UNIMPLEMENTED; #if 0
OBJECT_ATTRIBUTES ObjectAttributes;
NTSTATUS Status;
PWCH BaseKeyName[] =
L"\\Registry\\Machine\\Hardware\\MultifunctionAdapter\\0";
HANDLE BaseKeyHandle;
ULONG i;
struct
{
KEY_BASIC_INFORMATION BasicInfo;
WCH Name[255];
} BasicInfo;
BaseKeyName = L"\\Registry\\Machine\\Hardware\\MultifunctionAdapter";
InitializeObjectAttributes(&ObjectAttributes,
BaseKeyName,
0,
NULL,
NULL);
Status = ZwOpenKey(&BaseKeyHandle,
KEY_QUERY_VALUE | KEY_ENUMERATE_SUB_KEY,
&ObjectAttributes);
if (!NT_SUCCESS(Status))
{
return(Status);
}
i = 0;
for (;;)
{
Status = ZwEnumerateKey(BaseKeyHandle,
i,
KeyBasicInformation,
&BasicInfo,
sizeof(BasicInfo),
&ResultLength);
if (!NT_SUCCESS(Status))
{
break;
}
}
#endif
return(STATUS_NOT_IMPLEMENTED);
} }
NTSTATUS STDCALL NTSTATUS STDCALL

View file

@ -1,4 +1,4 @@
/* $Id: virtual.c,v 1.48 2001/08/07 14:07:33 ekohl Exp $ /* $Id: virtual.c,v 1.49 2001/09/27 02:14:35 dwelch Exp $
* *
* COPYRIGHT: See COPYING in the top directory * COPYRIGHT: See COPYING in the top directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
@ -890,7 +890,8 @@ NtAllocateVirtualMemory(IN HANDLE ProcessHandle,
if (((AllocationType & (MEM_COMMIT | MEM_RESERVE)) == MEM_COMMIT) && if (((AllocationType & (MEM_COMMIT | MEM_RESERVE)) == MEM_COMMIT) &&
(*UBaseAddress == 0)) (*UBaseAddress == 0))
{ {
return(STATUS_INVALID_PARAMETER); /* Fix for badly behaved vc applications. */
AllocationType |= MEM_RESERVE;
} }
PBaseAddress = *UBaseAddress; PBaseAddress = *UBaseAddress;