GENERIC_WRITE is required to flush the input buffer

svn path=/trunk/; revision=38171
This commit is contained in:
Christoph von Wittich 2008-12-18 12:32:32 +00:00
parent 6c8e595de5
commit f74a13b345

View file

@ -124,7 +124,7 @@ int main (int argc, char **argv)
return 0;
}
hKeyboard = CreateFile (_T("CONIN$"), GENERIC_READ,
hKeyboard = CreateFile (_T("CONIN$"), GENERIC_READ|GENERIC_WRITE,
0,NULL,OPEN_ALWAYS,0,0);
GetScreenSize(&maxx,&maxy);