CreateFile32A was only allowing console opens on CONIN$/OUT$. This

has been changed to have a case insensitive compare.
This commit is contained in:
Peter Hunnisett 1998-12-24 16:26:45 +00:00 committed by Alexandre Julliard
parent c979b7b09c
commit 1d26274c97
1 changed files with 4 additions and 3 deletions

View File

@ -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)