Commit 2a366cdd authored by Alexandre Julliard's avatar Alexandre Julliard

nsiproxy.sys: Use the Unix call helpers.

parent 14d411b8
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment