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
8227c030
Commit
8227c030
authored
Nov 10, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Return the drive type even when the buffer is too small.
parent
90ff8293
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+9
-1
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
8227c030
...
...
@@ -287,9 +287,17 @@ static NTSTATUS query_unix_drive( const void *in_buff, SIZE_T insize,
if
(
size
>
outsize
)
{
iosb
->
Information
=
0
;
if
(
size
>=
FIELD_OFFSET
(
struct
mountmgr_unix_drive
,
size
)
+
sizeof
(
output
->
size
))
{
output
->
size
=
size
;
iosb
->
Information
=
FIELD_OFFSET
(
struct
mountmgr_unix_drive
,
size
)
+
sizeof
(
output
->
size
);
iosb
->
Information
=
FIELD_OFFSET
(
struct
mountmgr_unix_drive
,
size
)
+
sizeof
(
output
->
size
);
}
if
(
size
>=
FIELD_OFFSET
(
struct
mountmgr_unix_drive
,
type
)
+
sizeof
(
output
->
type
))
{
output
->
type
=
type
;
iosb
->
Information
=
FIELD_OFFSET
(
struct
mountmgr_unix_drive
,
type
)
+
sizeof
(
output
->
type
);
}
return
STATUS_MORE_ENTRIES
;
}
output
->
size
=
size
;
...
...
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