CreateFile32A was only allowing console opens on CONIN$/OUT$. This
has been changed to have a case insensitive compare.
diff --git a/win32/file.c b/win32/file.c
index df2e63a..c971756 100644
--- a/win32/file.c
+++ b/win32/file.c
@@ -170,11 +170,12 @@
}
/* If the name is either CONIN$ or CONOUT$, give them duplicated stdin
- * or stdout, respectively.
+ * or stdout, respectively. The lower case version is also allowed. Most likely
+ * this should be a case ignore string compare.
*/
- if(!strcmp(filename, "CONIN$"))
+ if(!strcasecmp(filename, "CONIN$"))
to_dup = GetStdHandle( STD_INPUT_HANDLE );
- else if(!strcmp(filename, "CONOUT$"))
+ else if(!strcasecmp(filename, "CONOUT$"))
to_dup = GetStdHandle( STD_OUTPUT_HANDLE );
if(to_dup != HFILE_ERROR32)