advapi32: Fix ImpersonateNamedPipeClient to pass in a pointer to an IO_STATUS_BLOCK to NtFsControl.

Otherwise, NtFsControl file won't do anything except return STATUS_INVALID_PARAMETER.
This commit is contained in:
Rob Shearman 2007-09-13 14:03:20 +01:00 committed by Alexandre Julliard
parent 7d947c16cb
commit bcfe954451
1 changed files with 4 additions and 2 deletions

View File

@ -1267,10 +1267,12 @@ BOOL WINAPI InitializeAcl(PACL acl, DWORD size, DWORD rev)
BOOL WINAPI ImpersonateNamedPipeClient( HANDLE hNamedPipe )
{
IO_STATUS_BLOCK io_block;
TRACE("(%p)\n", hNamedPipe);
return set_ntstatus( NtFsControlFile(hNamedPipe, NULL, NULL, NULL, NULL,
FSCTL_PIPE_IMPERSONATE, NULL, 0, NULL, 0) );
return set_ntstatus( NtFsControlFile(hNamedPipe, NULL, NULL, NULL,
&io_block, FSCTL_PIPE_IMPERSONATE, NULL, 0, NULL, 0) );
}
/******************************************************************************