mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 08:24:16 +09:00
[winpr,wtsapi] add workaround for MINGW builds
MINGW does not define a NONAMELESSUNION compatible version of IO_STATUS_BLOCK.
This commit is contained in:
@@ -671,7 +671,13 @@ BOOL Win32_WTSVirtualChannelPurge_Internal(HANDLE hChannelHandle, ULONG IoContro
|
||||
ntstatus = NtWaitForSingleObject(pChannel->hFile, 0, 0);
|
||||
|
||||
if (ntstatus >= 0)
|
||||
{
|
||||
#if defined(NONAMELESSUNION) && !defined(__MINGW32__)
|
||||
ntstatus = ioStatusBlock.DUMMYUNIONNAME.Status;
|
||||
#else
|
||||
ntstatus = ioStatusBlock.Status;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
if (ntstatus == STATUS_BUFFER_OVERFLOW)
|
||||
|
||||
Reference in New Issue
Block a user