mirror of
https://github.com/reactos/reactos.git
synced 2025-07-03 23:21:21 +00:00
Changed from Nt to Zw functions in VGAResetDevice.
svn path=/trunk/; revision=2629
This commit is contained in:
parent
c9d3381474
commit
d1cfd4ffdb
1 changed files with 4 additions and 4 deletions
|
@ -69,7 +69,7 @@ void InitVGAMode()
|
||||||
int i;
|
int i;
|
||||||
VIDEO_X86_BIOS_ARGUMENTS vxba;
|
VIDEO_X86_BIOS_ARGUMENTS vxba;
|
||||||
VP_STATUS vps;
|
VP_STATUS vps;
|
||||||
|
|
||||||
// FIXME: Use Vidport to map the memory properly
|
// FIXME: Use Vidport to map the memory properly
|
||||||
vidmem = (char *)(0xd0000000 + 0xa0000);
|
vidmem = (char *)(0xd0000000 + 0xa0000);
|
||||||
memset(&vxba, 0, sizeof(vxba));
|
memset(&vxba, 0, sizeof(vxba));
|
||||||
|
@ -116,12 +116,12 @@ VOID VGAResetDevice(OUT PSTATUS_BLOCK StatusBlock)
|
||||||
vps = VideoPortInt10(NULL, &vxba);
|
vps = VideoPortInt10(NULL, &vxba);
|
||||||
RtlInitUnicodeString( &Name, L"\\TextConsoleRefreshEvent" );
|
RtlInitUnicodeString( &Name, L"\\TextConsoleRefreshEvent" );
|
||||||
InitializeObjectAttributes( &Attr, &Name, 0, 0, 0 );
|
InitializeObjectAttributes( &Attr, &Name, 0, 0, 0 );
|
||||||
Status = NtOpenEvent( &Event, STANDARD_RIGHTS_ALL, &Attr );
|
Status = ZwOpenEvent( &Event, STANDARD_RIGHTS_ALL, &Attr );
|
||||||
if( !NT_SUCCESS( Status ) )
|
if( !NT_SUCCESS( Status ) )
|
||||||
DbgPrint( "VGA: Failed to open refresh event\n" );
|
DbgPrint( "VGA: Failed to open refresh event\n" );
|
||||||
else {
|
else {
|
||||||
NtSetEvent( Event, &ThreadRelease );
|
ZwSetEvent( Event, &ThreadRelease );
|
||||||
NtClose( Event );
|
ZwClose( Event );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue