server: Allow opening the Afd device with a file name.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50974 Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4fe9055499
commit
30fd3019e1
|
@ -64,7 +64,7 @@ static void test_open_device(void)
|
|||
RtlInitUnicodeString(&string, L"\\Device\\Afd\\foobar");
|
||||
InitializeObjectAttributes(&attr, &string, 0, NULL, NULL);
|
||||
ret = NtOpenFile(&handle, SYNCHRONIZE, &attr, &io, 0, 0);
|
||||
todo_wine ok(!ret, "got %#x\n", ret);
|
||||
ok(!ret, "got %#x\n", ret);
|
||||
CloseHandle(handle);
|
||||
|
||||
s = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);
|
||||
|
|
|
@ -1981,6 +1981,7 @@ static void socket_device_dump( struct object *obj, int verbose )
|
|||
static struct object *socket_device_lookup_name( struct object *obj, struct unicode_str *name,
|
||||
unsigned int attr, struct object *root )
|
||||
{
|
||||
if (name) name->len = 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue