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
7b51cf49
Commit
7b51cf49
authored
Oct 15, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Return the drive unique id in IOCTL_MOUNTMGR_QUERY_POINTS.
parent
a28a3876
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+8
-2
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
7b51cf49
...
...
@@ -291,6 +291,8 @@ static NTSTATUS query_mount_points( const void *in_buff, SIZE_T insize,
if
(
!
matching_mount_point
(
&
mount_points
[
i
],
input
))
continue
;
size
+=
get_device_name
(
mount_points
[
i
].
device
)
->
Length
;
size
+=
mount_points
[
i
].
link
.
Length
;
size
+=
strlen
(
mount_points
[
i
].
id
)
+
1
;
size
=
(
size
+
sizeof
(
WCHAR
)
-
1
)
&
~
(
sizeof
(
WCHAR
)
-
1
);
j
++
;
}
pos
=
FIELD_OFFSET
(
MOUNTMGR_MOUNT_POINTS
,
MountPoints
[
j
]
);
...
...
@@ -308,8 +310,6 @@ static NTSTATUS query_mount_points( const void *in_buff, SIZE_T insize,
{
if
(
!
mount_points
[
i
].
device
)
continue
;
if
(
!
matching_mount_point
(
&
mount_points
[
i
],
input
))
continue
;
info
->
MountPoints
[
j
].
UniqueIdOffset
=
0
;
/* FIXME */
info
->
MountPoints
[
j
].
UniqueIdLength
=
0
;
dev_name
=
get_device_name
(
mount_points
[
i
].
device
);
info
->
MountPoints
[
j
].
DeviceNameOffset
=
pos
;
...
...
@@ -321,6 +321,12 @@ static NTSTATUS query_mount_points( const void *in_buff, SIZE_T insize,
info
->
MountPoints
[
j
].
SymbolicLinkNameLength
=
mount_points
[
i
].
link
.
Length
;
memcpy
(
(
char
*
)
out_buff
+
pos
,
mount_points
[
i
].
link
.
Buffer
,
mount_points
[
i
].
link
.
Length
);
pos
+=
mount_points
[
i
].
link
.
Length
;
info
->
MountPoints
[
j
].
UniqueIdOffset
=
pos
;
info
->
MountPoints
[
j
].
UniqueIdLength
=
strlen
(
mount_points
[
i
].
id
)
+
1
;
memcpy
(
(
char
*
)
out_buff
+
pos
,
mount_points
[
i
].
id
,
strlen
(
mount_points
[
i
].
id
)
+
1
);
pos
+=
strlen
(
mount_points
[
i
].
id
)
+
1
;
pos
=
(
pos
+
sizeof
(
WCHAR
)
-
1
)
&
~
(
sizeof
(
WCHAR
)
-
1
);
j
++
;
}
info
->
Size
=
pos
;
...
...
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