[+] Readd IPCPipe nt nonblock read (copy of process)
This commit is contained in:
parent
62e822f532
commit
2bfa4b0100
@ -202,6 +202,22 @@ namespace Aurora::IPC
|
||||
return false;
|
||||
}
|
||||
|
||||
if (nonblocking || !write.ptr)
|
||||
{
|
||||
DWORD avail {};
|
||||
if (!PeekNamedPipe(h, NULL, NULL, NULL, &avail, NULL))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!avail)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
size = AuMin(size, avail);
|
||||
}
|
||||
|
||||
if (!write.ptr)
|
||||
{
|
||||
write.outVariable = size;
|
||||
|
Loading…
Reference in New Issue
Block a user