Use _getch instead of deprecated getch

svn path=/trunk/; revision=38281
This commit is contained in:
Timo Kreuzer 2008-12-22 22:58:41 +00:00
parent 781ae61f03
commit 1fc586e88c

View file

@ -444,7 +444,7 @@ applyPatch_file_open_error:
printf("(S)kip, (R)etry, (A)bort, (M)anually enter filename");
do
{
c = getch();
c = _getch();
}
while (c != 's' && c != 'r' && c != 'a' && c != 'm');
printf("\n");
@ -496,7 +496,7 @@ applyPatch_file_open_error:
printf("Do you want to make a backup of %s? (Y)es, (N)o, (A)bort", fileName);
do
{
c = getch();
c = _getch();
}
while (c != 'y' && c != 'n' && c != 'a');
printf("\n");
@ -511,7 +511,7 @@ applyPatch_file_open_error:
printf("File %s already exists, overwrite? (Y)es, (N)o, (A)bort", buffer);
do
{
c = getch();
c = _getch();
}
while (c != 'y' && c != 'n' && c != 'a');
printf("\n");