summaryrefslogtreecommitdiff
path: root/spectro/conv.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2015-09-29 22:24:19 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2015-09-29 22:24:19 +0200
commit74a58795229dc11d4b07b56cec92260489d1c186 (patch)
treedbf369a1e24df4d5f11f3cc3b6f68110d959c336 /spectro/conv.c
parent119f02a4b432676cbe003ba5ed1f78137dfb4a20 (diff)
parentfa756339d4204bff7f2820067f58214d32780d17 (diff)
New upstream release 1.8.2
Diffstat (limited to 'spectro/conv.c')
-rw-r--r--spectro/conv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/spectro/conv.c b/spectro/conv.c
index 1f4d102..1a8c78b 100644
--- a/spectro/conv.c
+++ b/spectro/conv.c
@@ -130,11 +130,11 @@ int next_con_char(void) {
return c;
}
-/* Horrible hack to poll stdin when we're not interactive */
+/* Horrible hack to poll stdin when we're not interactive. */
/* This has the drawback that the char and returm must be */
/* written in one operation for the character to be recognised - */
/* trying to do this manually typically doesn't work unless you are */
-/* very fast an lucky. */
+/* very fast and lucky. */
static int th_read_char(void *pp) {
char *rp = (char *)pp;
HANDLE stdinh;
@@ -166,6 +166,7 @@ int poll_con_char(void) {
/* any of MSWin's async file read functions, because we */
/* have no way of ensuring that the STD_INPUT_HANDLE has been */
/* opened with FILE_FLAG_OVERLAPPED. Used a thread instead... */
+ /* ReOpenFile() would fix this, but it's not available in WinXP, only Visa+ :-( */
if ((getch_thread = new_athread(th_read_char, &c)) != NULL) {
HANDLE stdinh;