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
54417bf8
Commit
54417bf8
authored
Apr 08, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Assign a unique nonzero serial to all volumes.
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a14cdc8b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
device.c
dlls/mountmgr.sys/device.c
+3
-0
file.c
dlls/ntdll/tests/file.c
+1
-1
No files found.
dlls/mountmgr.sys/device.c
View file @
54417bf8
...
...
@@ -1123,6 +1123,9 @@ static NTSTATUS set_volume_info( struct volume *volume, struct dos_drive *drive,
}
}
if
(
!
volume
->
serial
)
memcpy
(
&
volume
->
serial
,
&
volume
->
guid
.
Data4
[
4
],
sizeof
(
DWORD
));
if
(
!
volume
->
mount
)
volume
->
mount
=
add_volume_mount_point
(
disk_device
->
dev_obj
,
&
disk_device
->
name
,
&
volume
->
guid
);
if
(
drive
&&
!
drive
->
mount
)
...
...
dlls/ntdll/tests/file.c
View file @
54417bf8
...
...
@@ -3908,7 +3908,7 @@ static void test_query_volume_information_file(void)
io
.
Information
);
todo_wine
ok
(
ffvi
->
VolumeCreationTime
.
QuadPart
!=
0
,
"Missing VolumeCreationTime
\n
"
);
todo_wine
ok
(
ffvi
->
VolumeSerialNumber
!=
0
,
"Missing VolumeSerialNumber
\n
"
);
ok
(
ffvi
->
VolumeSerialNumber
!=
0
,
"Missing VolumeSerialNumber
\n
"
);
ok
(
ffvi
->
SupportsObjects
==
1
,
"expected 1, got %d
\n
"
,
ffvi
->
SupportsObjects
);
ok
(
ffvi
->
VolumeLabelLength
==
lstrlenW
(
ffvi
->
VolumeLabel
)
*
sizeof
(
WCHAR
),
"got %d
\n
"
,
ffvi
->
VolumeLabelLength
);
...
...
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