Use case insensitive comparison to check file extensions.

This commit is contained in:
Dmitry Timoshkov 2005-11-18 12:06:57 +00:00 committed by Alexandre Julliard
parent 008298455f
commit ccf041a14d
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ HANDLE VXD_Open( LPCWSTR filenameW, DWORD access, SECURITY_ATTRIBUTES *sa )
strlwrW( name );
p = strchrW( name, '.' );
if (!p) strcatW( name, dotVxDW );
else if (strcmpW( p, dotVxDW )) /* existing extension has to be .vxd */
else if (strcmpiW( p, dotVxDW )) /* existing extension has to be .vxd */
{
SetLastError( ERROR_FILE_NOT_FOUND );
return 0;