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
14d411b8
Commit
14d411b8
authored
Nov 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Use the Unix call helpers.
parent
d8b77f14
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
9 deletions
+2
-9
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+1
-6
unixlib.h
dlls/mountmgr.sys/unixlib.h
+1
-3
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
14d411b8
...
...
@@ -46,8 +46,6 @@ struct mount_point
static
struct
list
mount_points_list
=
LIST_INIT
(
mount_points_list
);
static
HKEY
mount_key
;
unixlib_handle_t
mountmgr_handle
=
0
;
void
set_mount_point_id
(
struct
mount_point
*
mount
,
const
void
*
id
,
unsigned
int
id_len
)
{
RtlFreeHeap
(
GetProcessHeap
(),
0
,
mount
->
id
);
...
...
@@ -620,7 +618,6 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
#ifdef _WIN64
HKEY
wow64_ports_key
=
NULL
;
#endif
void
*
instance
;
UNICODE_STRING
nameW
,
linkW
;
DEVICE_OBJECT
*
device
;
HKEY
devicemap_key
;
...
...
@@ -629,9 +626,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
TRACE
(
"%s
\n
"
,
debugstr_w
(
path
->
Buffer
)
);
RtlPcToFileHeader
(
DriverEntry
,
&
instance
);
status
=
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
mountmgr_handle
,
sizeof
(
mountmgr_handle
),
NULL
);
status
=
__wine_init_unix_call
();
if
(
status
)
return
status
;
driver
->
MajorFunction
[
IRP_MJ_DEVICE_CONTROL
]
=
mountmgr_ioctl
;
...
...
dlls/mountmgr.sys/unixlib.h
View file @
14d411b8
...
...
@@ -174,9 +174,7 @@ enum mountmgr_funcs
unix_enumerate_credentials
,
};
extern
unixlib_handle_t
mountmgr_handle
;
#define MOUNTMGR_CALL( func, params ) __wine_unix_call( mountmgr_handle, unix_ ## func, params )
#define MOUNTMGR_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
extern
void
queue_device_op
(
enum
device_op
op
,
const
char
*
udi
,
const
char
*
device
,
const
char
*
mount_point
,
enum
device_type
type
,
const
GUID
*
guid
,
...
...
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