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
99159c7a
Commit
99159c7a
authored
Jul 05, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Use nameless union/structs.
parent
03ce134d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
cred.c
dlls/mountmgr.sys/cred.c
+0
-2
device.c
dlls/mountmgr.sys/device.c
+2
-4
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+9
-11
No files found.
dlls/mountmgr.sys/cred.c
View file @
99159c7a
...
...
@@ -36,8 +36,6 @@
#undef GetCurrentThread
#endif
#define NONAMELESSUNION
#include "mountmgr.h"
#include "unixlib.h"
#include "wine/debug.h"
...
...
dlls/mountmgr.sys/device.c
View file @
99159c7a
...
...
@@ -24,8 +24,6 @@
#include <stdio.h>
#include <stdlib.h>
#define NONAMELESSUNION
#include "mountmgr.h"
#include "winreg.h"
#include "winnls.h"
...
...
@@ -1749,7 +1747,7 @@ static NTSTATUS WINAPI harddisk_query_volume( DEVICE_OBJECT *device, IRP *irp )
}
done:
io
->
u
.
Status
=
status
;
io
->
Status
=
status
;
LeaveCriticalSection
(
&
device_section
);
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
status
;
...
...
@@ -1841,7 +1839,7 @@ static NTSTATUS WINAPI harddisk_ioctl( DEVICE_OBJECT *device, IRP *irp )
}
}
irp
->
IoStatus
.
u
.
Status
=
status
;
irp
->
IoStatus
.
Status
=
status
;
LeaveCriticalSection
(
&
device_section
);
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
status
;
...
...
dlls/mountmgr.sys/mountmgr.c
View file @
99159c7a
...
...
@@ -21,8 +21,6 @@
#include <stdarg.h>
#include <stdlib.h>
#define NONAMELESSUNION
#include "mountmgr.h"
#include "winreg.h"
#include "unixlib.h"
...
...
@@ -378,20 +376,20 @@ static void WINAPI query_dhcp_request_params( TP_CALLBACK_INSTANCE *instance, vo
/* sanity checks */
if
(
FIELD_OFFSET
(
struct
mountmgr_dhcp_request_params
,
params
[
query
->
count
])
>
insize
)
{
irp
->
IoStatus
.
u
.
Status
=
STATUS_INVALID_PARAMETER
;
irp
->
IoStatus
.
Status
=
STATUS_INVALID_PARAMETER
;
goto
err
;
}
for
(
i
=
0
;
i
<
query
->
count
;
i
++
)
if
(
query
->
params
[
i
].
offset
+
query
->
params
[
i
].
size
>
insize
)
{
irp
->
IoStatus
.
u
.
Status
=
STATUS_INVALID_PARAMETER
;
irp
->
IoStatus
.
Status
=
STATUS_INVALID_PARAMETER
;
goto
err
;
}
if
(
!
memchr
(
query
->
unix_name
,
0
,
sizeof
(
query
->
unix_name
)
))
{
irp
->
IoStatus
.
u
.
Status
=
STATUS_INVALID_PARAMETER
;
irp
->
IoStatus
.
Status
=
STATUS_INVALID_PARAMETER
;
goto
err
;
}
...
...
@@ -407,11 +405,11 @@ static void WINAPI query_dhcp_request_params( TP_CALLBACK_INSTANCE *instance, vo
{
if
(
offset
>=
sizeof
(
query
->
size
))
query
->
size
=
offset
;
offset
=
sizeof
(
query
->
size
);
irp
->
IoStatus
.
u
.
Status
=
STATUS_BUFFER_OVERFLOW
;
irp
->
IoStatus
.
Status
=
STATUS_BUFFER_OVERFLOW
;
goto
err
;
}
}
irp
->
IoStatus
.
u
.
Status
=
STATUS_SUCCESS
;
irp
->
IoStatus
.
Status
=
STATUS_SUCCESS
;
err:
irp
->
IoStatus
.
Information
=
offset
;
...
...
@@ -430,7 +428,7 @@ static void WINAPI query_symbol_file_callback( TP_CALLBACK_INSTANCE *instance, v
NTSTATUS
status
=
MOUNTMGR_CALL
(
query_symbol_file
,
&
params
);
irp
->
IoStatus
.
Information
=
info
;
irp
->
IoStatus
.
u
.
Status
=
status
;
irp
->
IoStatus
.
Status
=
status
;
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
}
...
...
@@ -528,7 +526,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
}
if
(
TrySubmitThreadpoolCallback
(
query_dhcp_request_params
,
irp
,
NULL
))
return
(
irp
->
IoStatus
.
u
.
Status
=
STATUS_PENDING
);
return
(
irp
->
IoStatus
.
Status
=
STATUS_PENDING
);
status
=
STATUS_NO_MEMORY
;
break
;
case
IOCTL_MOUNTMGR_QUERY_SYMBOL_FILE
:
...
...
@@ -538,7 +536,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
break
;
}
if
(
TrySubmitThreadpoolCallback
(
query_symbol_file_callback
,
irp
,
NULL
))
return
(
irp
->
IoStatus
.
u
.
Status
=
STATUS_PENDING
);
return
(
irp
->
IoStatus
.
Status
=
STATUS_PENDING
);
status
=
STATUS_NO_MEMORY
;
break
;
case
IOCTL_MOUNTMGR_READ_CREDENTIAL
:
...
...
@@ -594,7 +592,7 @@ static NTSTATUS WINAPI mountmgr_ioctl( DEVICE_OBJECT *device, IRP *irp )
status
=
STATUS_NOT_SUPPORTED
;
break
;
}
irp
->
IoStatus
.
u
.
Status
=
status
;
irp
->
IoStatus
.
Status
=
status
;
IoCompleteRequest
(
irp
,
IO_NO_INCREMENT
);
return
status
;
}
...
...
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