fixed issue where it can't open handle for pipes created with PIPE_ACCESS_INBOUND
This commit is contained in:
parent
a8c542bb91
commit
314083bbc3
|
@ -291,8 +291,12 @@ VOID IpcPipeQueryInfo(
|
||||||
//open pipe
|
//open pipe
|
||||||
hPipe = NULL;
|
hPipe = NULL;
|
||||||
if (!IpcOpenObjectMethod(Context, &hPipe, GENERIC_READ)) {
|
if (!IpcOpenObjectMethod(Context, &hPipe, GENERIC_READ)) {
|
||||||
IpcDisplayError(hwndDlg, IpcModeNamedPipes);
|
|
||||||
return;
|
// for pipes created with PIPE_ACCESS_INBOUND open mode https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-createnamedpipea
|
||||||
|
if (!IpcOpenObjectMethod(Context, &hPipe, GENERIC_WRITE | FILE_READ_ATTRIBUTES)) {
|
||||||
|
IpcDisplayError(hwndDlg, IpcModeNamedPipes);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
RtlSecureZeroMemory(&fpli, sizeof(fpli));
|
RtlSecureZeroMemory(&fpli, sizeof(fpli));
|
||||||
|
|
Loading…
Reference in New Issue