CreateFile32A was only allowing console opens on CONIN$/OUT$. This
has been changed to have a case insensitive compare.
This commit is contained in:
parent
c979b7b09c
commit
1d26274c97
|
@ -170,11 +170,12 @@ HFILE32 WINAPI CreateFile32A(LPCSTR filename, DWORD access, DWORD sharing,
|
|||
}
|
||||
|
||||
/* 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)
|
||||
|
|
Loading…
Reference in New Issue