http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71424b8
)
memicmpW() count are WCHAR's not bytes. Fixes opening CON device.
author
Rein Klazes
<wijn@wanadoo.nl>
Tue, 11 Jan 2005 15:09:01 +0000
(15:09 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Tue, 11 Jan 2005 15:09:01 +0000
(15:09 +0000)
dlls/kernel/file.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/kernel/file.c
b/dlls/kernel/file.c
index 960935d328cfa3cca3379e3ea9b43ec96835a158..e63bb8e48c65b316823431422259b065752df5a3 100644
(file)
--- a/
dlls/kernel/file.c
+++ b/
dlls/kernel/file.c
@@
-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))
{