[winpr,wtsapi] add workaround for MINGW builds

MINGW does not define a NONAMELESSUNION compatible version of
IO_STATUS_BLOCK.
This commit is contained in:
akallabeth
2024-12-09 17:56:01 +01:00
parent 0d12033f41
commit 98a39bcd98

View File

@@ -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)