mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
more minor fixes
svn path=/trunk/; revision=111
This commit is contained in:
parent
b097125d77
commit
4bc8aa3713
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,6 @@
|
|||
|
||||
#include <internal/mmhal.h>
|
||||
|
||||
#include <ddk/ntddk.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
|
@ -12,6 +15,9 @@ void debug_printf(char* fmt, ...)
|
|||
va_end(args);
|
||||
}
|
||||
|
||||
#define VIDMEM_BASE 0xb8000
|
||||
static char* vidmem = (char *)(VIDMEM_BASE + IDMAP_BASE);
|
||||
|
||||
void main()
|
||||
{
|
||||
KEY_EVENT_RECORD KeyEvent[2];
|
||||
|
@ -19,12 +25,14 @@ void main()
|
|||
DWORD Result;
|
||||
HANDLE DefaultHeap;
|
||||
PVOID Buffer;
|
||||
|
||||
|
||||
vidmem[(80 * 50 - 1) * 2] = '0';
|
||||
NtDisplayString("Simple Shell Starting...\n");
|
||||
|
||||
// DefaultHeap = HeapCreate(0,1024*1024,1024*1024);
|
||||
// Buffer = HeapAlloc(DefaultHeap,0,1024);
|
||||
|
||||
vidmem[(80 * 50 - 1) * 2] = '1';
|
||||
FileHandle = CreateFile("\\Device\\Keyboard",
|
||||
FILE_GENERIC_READ,
|
||||
0,
|
||||
|
@ -33,6 +41,7 @@ void main()
|
|||
0,
|
||||
NULL);
|
||||
|
||||
vidmem[(80 * 50 - 1) * 2] = '2';
|
||||
debug_printf("C:\\");
|
||||
for(;;)
|
||||
{
|
||||
|
|
|
@ -969,7 +969,7 @@ IDECreateDevice(IN PDRIVER_OBJECT DriverObject,
|
|||
|
||||
if (Win32Alias != NULL)
|
||||
{
|
||||
DbgPrint("%s is %s %dMB\n", DeviceName, Win32Alias, (Size + 512) / 1024);
|
||||
DbgPrint("%s is %s %dMB\n", DeviceName, Win32Alias, Size / 2048);
|
||||
}
|
||||
|
||||
return RC;
|
||||
|
|
Loading…
Reference in a new issue