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
2a366cdd
Commit
2a366cdd
authored
Nov 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsiproxy.sys: Use the Unix call helpers.
parent
14d411b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
device.c
dlls/nsiproxy.sys/device.c
+2
-6
No files found.
dlls/nsiproxy.sys/device.c
View file @
2a366cdd
...
...
@@ -37,7 +37,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
nsi
);
static
unixlib_handle_t
nsiproxy_handle
;
static
HANDLE
request_event
;
#define DECLARE_CRITICAL_SECTION(cs) \
...
...
@@ -53,7 +52,7 @@ static LIST_ENTRY request_queue = LIST_ENTRY_INIT( request_queue );
static
NTSTATUS
nsiproxy_call
(
unsigned
int
code
,
void
*
args
)
{
return
__wine_unix_call
(
nsiproxy_handle
,
code
,
args
);
return
WINE_UNIX_CALL
(
code
,
args
);
}
enum
unix_calls
...
...
@@ -425,15 +424,12 @@ static DWORD WINAPI request_thread_proc( void *arg )
NTSTATUS
WINAPI
DriverEntry
(
DRIVER_OBJECT
*
driver
,
UNICODE_STRING
*
path
)
{
HMODULE
instance
;
NTSTATUS
status
;
HANDLE
thread
;
TRACE
(
"(%p, %s)
\n
"
,
driver
,
debugstr_w
(
path
->
Buffer
)
);
RtlPcToFileHeader
(
&
DriverEntry
,
(
void
*
)
&
instance
);
status
=
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
nsiproxy_handle
,
sizeof
(
nsiproxy_handle
),
NULL
);
status
=
__wine_init_unix_call
();
if
(
status
)
return
status
;
driver
->
MajorFunction
[
IRP_MJ_DEVICE_CONTROL
]
=
nsi_ioctl
;
...
...
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