libwinpr-wtsapi: fix build after changes to libwinpr-nt

This commit is contained in:
Marc-André Moreau 2013-10-22 21:43:59 -04:00
parent ebc096f2b2
commit 9c536cfe01
2 changed files with 6 additions and 4 deletions

View File

@ -37,6 +37,7 @@ typedef CHAR TCHAR;
#ifdef UNICODE
#define _tprintf wprintf
#define _tcslen _wcslen
#define _tcsdup _wcsdup
#define _tcscmp wcscmp
#define _tcscpy wcscpy
@ -47,6 +48,7 @@ typedef CHAR TCHAR;
#define _stprintf_s swprintf_s
#else
#define _tprintf printf
#define _tcslen strlen
#define _tcsdup _strdup
#define _tcscmp strcmp
#define _tcscpy strcpy

View File

@ -301,11 +301,11 @@ BOOL VirtualChannelIoctl(HANDLE hChannelHandle, ULONG IoControlCode)
return FALSE;
}
ntstatus = NtDeviceIoControlFile(hChannelHandle, 0, 0, 0, &ioStatusBlock, IoControlCode, 0, 0, 0, 0);
ntstatus = _NtDeviceIoControlFile(hChannelHandle, 0, 0, 0, &ioStatusBlock, IoControlCode, 0, 0, 0, 0);
if (ntstatus == STATUS_PENDING)
{
ntstatus = NtWaitForSingleObject(hChannelHandle, 0, 0);
ntstatus = _NtWaitForSingleObject(hChannelHandle, 0, 0);
if (ntstatus >= 0)
ntstatus = ioStatusBlock.status;
@ -314,14 +314,14 @@ BOOL VirtualChannelIoctl(HANDLE hChannelHandle, ULONG IoControlCode)
if (ntstatus == STATUS_BUFFER_OVERFLOW)
{
ntstatus = STATUS_BUFFER_TOO_SMALL;
error = RtlNtStatusToDosError(ntstatus);
error = _RtlNtStatusToDosError(ntstatus);
SetLastError(error);
return FALSE;
}
if (ntstatus < 0)
{
error = RtlNtStatusToDosError(ntstatus);
error = _RtlNtStatusToDosError(ntstatus);
SetLastError(error);
return FALSE;
}