Commit b0d57e5f authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Update the IOSB status in NtCreateNamedPipeFile().

parent 7e28fa5c
......@@ -379,6 +379,7 @@ static void test_name_collisions(void)
FILE_OPEN_IF, FILE_PIPE_FULL_DUPLEX,
FALSE, FALSE, FALSE, 10, 256, 256, &timeout );
ok(status == STATUS_SUCCESS, "failed to create pipe %08lx\n", status);
ok( iosb.Status == STATUS_SUCCESS, "wrong status %08lx\n", status);
ok( iosb.Information == FILE_CREATED, "wrong info %Ix\n", iosb.Information );
pNtClose( h );
......@@ -388,6 +389,7 @@ static void test_name_collisions(void)
FILE_CREATE, FILE_PIPE_FULL_DUPLEX,
FALSE, FALSE, FALSE, 10, 256, 256, &timeout );
ok(status == STATUS_SUCCESS, "failed to create pipe %08lx\n", status);
ok( iosb.Status == STATUS_SUCCESS, "wrong status %08lx\n", status);
ok( iosb.Information == FILE_CREATED, "wrong info %Ix\n", iosb.Information );
memset( &iosb, 0xcc, sizeof(iosb) );
......@@ -396,6 +398,7 @@ static void test_name_collisions(void)
FILE_OPEN, FILE_PIPE_FULL_DUPLEX,
FALSE, FALSE, FALSE, 10, 256, 256, &timeout );
ok(status == STATUS_SUCCESS, "failed to create pipe %08lx\n", status);
ok( iosb.Status == STATUS_SUCCESS, "wrong status %08lx\n", status);
ok( iosb.Information == FILE_OPENED, "wrong info %Ix\n", iosb.Information );
pNtClose(h1);
......@@ -405,6 +408,7 @@ static void test_name_collisions(void)
FILE_OPEN_IF, FILE_PIPE_FULL_DUPLEX,
FALSE, FALSE, FALSE, 10, 256, 256, &timeout );
ok(status == STATUS_SUCCESS, "failed to create pipe %08lx\n", status);
ok( iosb.Status == STATUS_SUCCESS, "wrong status %08lx\n", status);
ok( iosb.Information == FILE_OPENED, "wrong info %Ix\n", iosb.Information );
pNtClose(h1);
......
......@@ -4153,7 +4153,7 @@ NTSTATUS WINAPI NtCreateNamedPipeFile( HANDLE *handle, ULONG access, OBJECT_ATTR
SERVER_END_REQ;
free( objattr );
return status;
return io->u.Status = status;
}
......
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