Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7c6302b7
Commit
7c6302b7
authored
Oct 30, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Only try to open a VxD if opening a normal device failed.
parent
74cdb539
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
file.c
dlls/kernel32/file.c
+5
-12
No files found.
dlls/kernel32/file.c
View file @
7c6302b7
...
...
@@ -1316,6 +1316,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
IO_STATUS_BLOCK
io
;
HANDLE
ret
;
DWORD
dosdev
;
const
WCHAR
*
vxd_name
=
NULL
;
static
const
WCHAR
bkslashes_with_dotW
[]
=
{
'\\'
,
'\\'
,
'.'
,
'\\'
,
0
};
static
const
WCHAR
coninW
[]
=
{
'C'
,
'O'
,
'N'
,
'I'
,
'N'
,
'$'
,
0
};
static
const
WCHAR
conoutW
[]
=
{
'C'
,
'O'
,
'N'
,
'O'
,
'U'
,
'T'
,
'$'
,
0
};
...
...
@@ -1371,19 +1372,9 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
{
dosdev
+=
MAKELONG
(
0
,
4
*
sizeof
(
WCHAR
)
);
/* adjust position to start of filename */
}
else
if
(
!
(
GetVersion
()
&
0x80000000
)
)
else
if
(
GetVersion
()
&
0x80000000
)
{
dosdev
=
0
;
}
else
if
(
filename
[
4
])
{
ret
=
VXD_Open
(
filename
+
4
,
access
,
sa
);
goto
done
;
}
else
{
SetLastError
(
ERROR_INVALID_NAME
);
return
INVALID_HANDLE_VALUE
;
vxd_name
=
filename
+
4
;
}
}
else
dosdev
=
RtlIsDosDeviceName_U
(
filename
);
...
...
@@ -1465,6 +1456,8 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
options
,
NULL
,
0
);
if
(
status
)
{
if
(
vxd_name
&&
vxd_name
[
0
]
&&
(
ret
=
VXD_Open
(
vxd_name
,
access
,
sa
)))
goto
done
;
WARN
(
"Unable to create file %s (status %x)
\n
"
,
debugstr_w
(
filename
),
status
);
ret
=
INVALID_HANDLE_VALUE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment