Commit 30fd3019 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

server: Allow opening the Afd device with a file name.

parent 4fe90554
......@@ -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;
}
......
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