From 2a366cddd71fed2148a4e6fd0fe28312421e13e2 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 24 Nov 2022 10:33:45 +0100 Subject: [PATCH] nsiproxy.sys: Use the Unix call helpers. --- dlls/nsiproxy.sys/device.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dlls/nsiproxy.sys/device.c b/dlls/nsiproxy.sys/device.c index 7aba1f0c36f..4528e934991 100644 --- a/dlls/nsiproxy.sys/device.c +++ b/dlls/nsiproxy.sys/device.c @@ -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;