mirror of
https://github.com/MariaDB/server.git
synced 2026-04-25 01:35:31 +02:00
Fixes for Windows XP
This commit is contained in:
parent
bfac7d637f
commit
db65e4f537
1 changed files with 8 additions and 7 deletions
|
|
@ -67,7 +67,8 @@ void get_tty_password_buff(const char *opt_message, char *to, size_t length)
|
|||
char *pos=to,*end=to+length-1;
|
||||
int i=0;
|
||||
|
||||
consoleinput= CreateFile("CONIN$", GENERIC_WRITE | GENERIC_READ, 0 , NULL, 0, 0, NULL);
|
||||
consoleinput= CreateFile("CONIN$", GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ ,
|
||||
NULL, OPEN_EXISTING, 0, NULL);
|
||||
if (consoleinput == NULL || consoleinput == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
/* This is a GUI application or service without console input, bail out. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue