memicmpW() count are WCHAR's not bytes. Fixes opening CON device.

This commit is contained in:
Rein Klazes 2005-01-11 15:09:01 +00:00 committed by Alexandre Julliard
parent 71424b80e5
commit 8032418e2d
1 changed files with 1 additions and 1 deletions

View File

@ -1247,7 +1247,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
static const WCHAR conW[] = {'C','O','N'};
if (LOWORD(dosdev) == sizeof(conW) &&
!memicmpW( filename + HIWORD(dosdev)/sizeof(WCHAR), conW, sizeof(conW)))
!memicmpW( filename + HIWORD(dosdev)/sizeof(WCHAR), conW, sizeof(conW)/sizeof(WCHAR)))
{
switch (access & (GENERIC_READ|GENERIC_WRITE))
{