Commit 8032418e authored by Rein Klazes's avatar Rein Klazes Committed by Alexandre Julliard

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

parent 71424b80
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment