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
6c465ae8
Commit
6c465ae8
authored
Jul 05, 2022
by
Tim Clem
Committed by
Alexandre Julliard
Jul 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Always set the return size from dhcp_request implementations.
Also return STATUS_SUCCESS rather than 0 in early-out cases. Signed-off-by:
Tim Clem
<
tclem@codeweavers.com
>
parent
3f36d7e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
dbus.c
dlls/mountmgr.sys/dbus.c
+2
-1
diskarb.c
dlls/mountmgr.sys/diskarb.c
+3
-2
No files found.
dlls/mountmgr.sys/dbus.c
View file @
6c465ae8
...
...
@@ -777,8 +777,9 @@ NTSTATUS dhcp_request( void *args )
ULONG
ret
=
0
;
params
->
req
->
offset
=
params
->
req
->
size
=
0
;
*
params
->
ret_size
=
0
;
if
(
!
(
reply
=
dhcp4_config_option_request
(
params
->
unix_name
,
map_option
(
params
->
req
->
id
),
&
value
)))
return
0
;
if
(
!
(
reply
=
dhcp4_config_option_request
(
params
->
unix_name
,
map_option
(
params
->
req
->
id
),
&
value
)))
return
STATUS_SUCCESS
;
switch
(
params
->
req
->
id
)
{
...
...
dlls/mountmgr.sys/diskarb.c
View file @
6c465ae8
...
...
@@ -293,18 +293,19 @@ NTSTATUS dhcp_request( void *args )
params
->
req
->
offset
=
0
;
params
->
req
->
size
=
0
;
*
params
->
ret_size
=
0
;
if
(
!
service_id
)
return
0
;
if
(
!
(
dict
=
SCDynamicStoreCopyDHCPInfo
(
NULL
,
service_id
)))
{
CFRelease
(
service_id
);
return
0
;
return
STATUS_SUCCESS
;
}
CFRelease
(
service_id
);
if
(
!
(
value
=
DHCPInfoGetOptionData
(
dict
,
map_option
(
params
->
req
->
id
)
)))
{
CFRelease
(
dict
);
return
0
;
return
STATUS_SUCCESS
;
}
len
=
CFDataGetLength
(
value
);
...
...
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