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
bccf1255
Commit
bccf1255
authored
Jan 19, 2023
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Apr 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Don't attempt to read from invalid media.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49615
(cherry picked from commit
90d50bc6
)
parent
3ef09c6d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
device.c
dlls/mountmgr.sys/device.c
+8
-0
No files found.
dlls/mountmgr.sys/device.c
View file @
bccf1255
...
@@ -899,6 +899,14 @@ static BOOL get_volume_device_info( struct volume *volume )
...
@@ -899,6 +899,14 @@ static BOOL get_volume_device_info( struct volume *volume )
}
}
else
else
{
{
if
(
GetLastError
()
==
ERROR_NOT_READY
)
{
TRACE
(
"%s: removable drive with no inserted media
\n
"
,
debugstr_a
(
unix_device
)
);
volume
->
fs_type
=
FS_UNKNOWN
;
CloseHandle
(
handle
);
return
TRUE
;
}
volume
->
fs_type
=
VOLUME_ReadFATSuperblock
(
handle
,
superblock
);
volume
->
fs_type
=
VOLUME_ReadFATSuperblock
(
handle
,
superblock
);
if
(
volume
->
fs_type
==
FS_UNKNOWN
)
volume
->
fs_type
=
VOLUME_ReadCDSuperblock
(
handle
,
superblock
);
if
(
volume
->
fs_type
==
FS_UNKNOWN
)
volume
->
fs_type
=
VOLUME_ReadCDSuperblock
(
handle
,
superblock
);
}
}
...
...
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