Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0f41df16
Commit
0f41df16
authored
Aug 25, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FILE_GetDeviceInfo in NtMapViewOfSection to avoid having to fetch
the file descriptor twice.
parent
a391a98a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
virtual.c
dlls/ntdll/virtual.c
+1
-3
No files found.
dlls/ntdll/virtual.c
View file @
0f41df16
...
@@ -1675,7 +1675,6 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
...
@@ -1675,7 +1675,6 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
SIZE_T
commit_size
,
const
LARGE_INTEGER
*
offset_ptr
,
SIZE_T
*
size_ptr
,
SIZE_T
commit_size
,
const
LARGE_INTEGER
*
offset_ptr
,
SIZE_T
*
size_ptr
,
SECTION_INHERIT
inherit
,
ULONG
alloc_type
,
ULONG
protect
)
SECTION_INHERIT
inherit
,
ULONG
alloc_type
,
ULONG
protect
)
{
{
IO_STATUS_BLOCK
io
;
FILE_FS_DEVICE_INFORMATION
device_info
;
FILE_FS_DEVICE_INFORMATION
device_info
;
NTSTATUS
res
;
NTSTATUS
res
;
SIZE_T
size
=
0
;
SIZE_T
size
=
0
;
...
@@ -1722,8 +1721,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
...
@@ -1722,8 +1721,7 @@ NTSTATUS WINAPI NtMapViewOfSection( HANDLE handle, HANDLE process, PVOID *addr_p
if
((
res
=
wine_server_handle_to_fd
(
handle
,
0
,
&
unix_handle
,
NULL
)))
return
res
;
if
((
res
=
wine_server_handle_to_fd
(
handle
,
0
,
&
unix_handle
,
NULL
)))
return
res
;
if
(
NtQueryVolumeInformationFile
(
handle
,
&
io
,
&
device_info
,
sizeof
(
device_info
),
if
(
FILE_GetDeviceInfo
(
unix_handle
,
&
device_info
)
==
STATUS_SUCCESS
)
FileFsDeviceInformation
)
==
STATUS_SUCCESS
)
removable
=
device_info
.
Characteristics
&
FILE_REMOVABLE_MEDIA
;
removable
=
device_info
.
Characteristics
&
FILE_REMOVABLE_MEDIA
;
if
(
prot
&
VPROT_IMAGE
)
if
(
prot
&
VPROT_IMAGE
)
...
...
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