mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:54:05 +00:00
nsiproxy.sys: Use the Unix call helpers.
This commit is contained in:
parent
14d411b8a0
commit
2a366cddd7
|
@ -37,7 +37,6 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(nsi);
|
WINE_DEFAULT_DEBUG_CHANNEL(nsi);
|
||||||
|
|
||||||
static unixlib_handle_t nsiproxy_handle;
|
|
||||||
static HANDLE request_event;
|
static HANDLE request_event;
|
||||||
|
|
||||||
#define DECLARE_CRITICAL_SECTION(cs) \
|
#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 )
|
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
|
enum unix_calls
|
||||||
|
@ -425,15 +424,12 @@ static DWORD WINAPI request_thread_proc( void *arg )
|
||||||
|
|
||||||
NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
|
NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
|
||||||
{
|
{
|
||||||
HMODULE instance;
|
|
||||||
NTSTATUS status;
|
NTSTATUS status;
|
||||||
HANDLE thread;
|
HANDLE thread;
|
||||||
|
|
||||||
TRACE( "(%p, %s)\n", driver, debugstr_w( path->Buffer ) );
|
TRACE( "(%p, %s)\n", driver, debugstr_w( path->Buffer ) );
|
||||||
|
|
||||||
RtlPcToFileHeader( &DriverEntry, (void *)&instance );
|
status = __wine_init_unix_call();
|
||||||
status = NtQueryVirtualMemory( GetCurrentProcess(), instance, MemoryWineUnixFuncs,
|
|
||||||
&nsiproxy_handle, sizeof(nsiproxy_handle), NULL );
|
|
||||||
if (status) return status;
|
if (status) return status;
|
||||||
|
|
||||||
driver->MajorFunction[IRP_MJ_DEVICE_CONTROL] = nsi_ioctl;
|
driver->MajorFunction[IRP_MJ_DEVICE_CONTROL] = nsi_ioctl;
|
||||||
|
|
Loading…
Reference in a new issue