mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
Change NonPagedPool for AllocateBuffer and implemented GetVersion for David Welch.
svn path=/trunk/; revision=8581
This commit is contained in:
parent
0e200b6f99
commit
2f224f7360
1 changed files with 26 additions and 6 deletions
|
@ -18,7 +18,7 @@
|
||||||
* If not, write to the Free Software Foundation,
|
* If not, write to the Free Software Foundation,
|
||||||
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
*
|
*
|
||||||
* $Id: videoprt.c,v 1.9 2004/03/07 04:43:55 dwelch Exp $
|
* $Id: videoprt.c,v 1.10 2004/03/08 04:09:02 jimtabor Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "videoprt.h"
|
#include "videoprt.h"
|
||||||
|
@ -1400,26 +1400,31 @@ VideoPortDDCMonitorHelper(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
VP_STATUS
|
VP_STATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
VideoPortAllocateBuffer(IN PVOID HwDeviceExtension,
|
VideoPortAllocateBuffer(IN PVOID HwDeviceExtension,
|
||||||
IN ULONG Size,
|
IN ULONG Size,
|
||||||
OUT PVOID *Buffer)
|
OUT PVOID *Buffer)
|
||||||
{
|
{
|
||||||
DPRINT("VideoPortAllocateBuffer\n");
|
DPRINT("VideoPortAllocateBuffer()\n");
|
||||||
|
|
||||||
Buffer = ExAllocatePool (PagedPool, Size) ;
|
Buffer = ExAllocatePool (NonPagedPool, Size) ;
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
VOID
|
VOID
|
||||||
STDCALL
|
STDCALL
|
||||||
VideoPortReleaseBuffer( IN PVOID HwDeviceExtension,
|
VideoPortReleaseBuffer( IN PVOID HwDeviceExtension,
|
||||||
IN PVOID Ptr)
|
IN PVOID Ptr)
|
||||||
{
|
{
|
||||||
DPRINT("VideoPortReleaseBuffer\n");
|
DPRINT("VideoPortReleaseBuffer()\n");
|
||||||
|
|
||||||
ExFreePool(Ptr);
|
ExFreePool(Ptr);
|
||||||
}
|
}
|
||||||
|
@ -1591,12 +1596,27 @@ VideoPortGetDmaAdapter ( IN PVOID HwDeviceExtension,
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
VP_STATUS
|
VP_STATUS
|
||||||
STDCALL
|
STDCALL
|
||||||
VideoPortGetVersion ( IN PVOID HwDeviceExtension,
|
VideoPortGetVersion ( IN PVOID HwDeviceExtension,
|
||||||
IN OUT PVPOSVERSIONINFO VpOsVersionInfo )
|
IN OUT PVPOSVERSIONINFO VpOsVersionInfo )
|
||||||
{
|
{
|
||||||
DPRINT1("VideoPortGetVersion(): Unimplemented.\n");
|
PPEB Peb;
|
||||||
|
|
||||||
|
DPRINT1("VideoPortGetVersion()\n");
|
||||||
|
|
||||||
|
Peb = NtCurrentPeb();
|
||||||
|
|
||||||
|
VpOsVersionInfo->MajorVersion = Peb->OSMajorVersion;
|
||||||
|
VpOsVersionInfo->MinorVersion = Peb->OSMinorVersion;
|
||||||
|
VpOsVersionInfo->BuildNumber = Peb->OSBuildNumber;
|
||||||
|
VpOsVersionInfo->ServicePackMajor = Peb->SPMajorVersion;
|
||||||
|
VpOsVersionInfo->ServicePackMinor = Peb->SPMinorVersion;
|
||||||
|
|
||||||
return STATUS_UNSUCCESSFUL;
|
return STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue