mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:08:30 +00:00
nsiproxy: Avoid calling RtlInitUnicodeString on a static constant.
This commit is contained in:
parent
5a1d2dde3b
commit
3ab7d745fe
|
@ -305,13 +305,11 @@ static NTSTATUS WINAPI nsi_ioctl( DEVICE_OBJECT *device, IRP *irp )
|
|||
|
||||
static int add_device( DRIVER_OBJECT *driver )
|
||||
{
|
||||
UNICODE_STRING name, link;
|
||||
UNICODE_STRING name = RTL_CONSTANT_STRING( L"\\Device\\Nsi" );
|
||||
UNICODE_STRING link = RTL_CONSTANT_STRING( L"\\??\\Nsi" );
|
||||
DEVICE_OBJECT *device;
|
||||
NTSTATUS status;
|
||||
|
||||
RtlInitUnicodeString( &name, L"\\Device\\Nsi" );
|
||||
RtlInitUnicodeString( &link, L"\\??\\Nsi" );
|
||||
|
||||
if (!(status = IoCreateDevice( driver, 0, &name, FILE_DEVICE_NETWORK, FILE_DEVICE_SECURE_OPEN, FALSE, &device )))
|
||||
status = IoCreateSymbolicLink( &link, &name );
|
||||
if (status)
|
||||
|
|
Loading…
Reference in a new issue