Corrected a number of bugs, including the keyboard one

svn path=/trunk/; revision=115
This commit is contained in:
David Welch
1998-12-08 16:51:47 +00:00
parent 8587170853
commit 4bc75819a3
9 changed files with 40 additions and 32 deletions

View File

@@ -11,7 +11,7 @@ void debug_printf(char* fmt, ...)
va_start(args,fmt);
vsprintf(buffer,fmt,args);
OutputDebugString(buffer);
OutputDebugStringA(buffer);
va_end(args);
}
@@ -36,18 +36,18 @@ void main()
0,
NULL);
NtDisplayString("#1\n");
debug_printf("C:\\");
NtDisplayString("#2\n");
for(;;)
{
ReadFile(FileHandle,
&KeyEvent,
sizeof(KeyEvent),
sizeof(KEY_EVENT_RECORD),
&Result,
NULL);
NtDisplayString("#3\n");
debug_printf("%c",KeyEvent[0].AsciiChar);
NtDisplayString("#4\n");
if (KeyEvent[0].bKeyDown)
{
debug_printf("%c",KeyEvent[0].AsciiChar);
}
}
}