Set correct last error if the path contains wildcard characters.

This commit is contained in:
Shachar Shemesh 2003-01-10 01:44:24 +00:00 committed by Alexandre Julliard
parent 728bedcfc6
commit 44fb75f62c
1 changed files with 3 additions and 0 deletions

View File

@ -623,7 +623,10 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
/* If the name contains a DOS wild card (* or ?), do no create a file */
if(strchrW(filename, '*') || strchrW(filename, '?'))
{
SetLastError(ERROR_BAD_PATHNAME);
return INVALID_HANDLE_VALUE;
}
/* Open a console for CONIN$ or CONOUT$ */
if (!strcmpiW(filename, coninW))