libwinpr-asn1: fix compilation on Windows

This commit is contained in:
Marc-André Moreau 2012-07-24 15:05:52 -04:00
parent d1be8fc222
commit 3d62beb17e
2 changed files with 1 additions and 10 deletions

View File

@ -20,13 +20,6 @@
#ifndef WINPR_ASN1_H
#define WINPR_ASN1_H
#ifdef _WIN32
#include <msasn1.h>
#include <msber.h>
#else
#include <winpr/winpr.h>
#include <winpr/wtypes.h>
@ -508,7 +501,5 @@ WINPR_API int ASN1DEREncNewBlkElement(void* pBlk, ASN1encoding_t* enc2);
WINPR_API int ASN1DEREncFlushBlkElement(void* pBlk);
WINPR_API int ASN1DEREncEndBlk(void* pBlk);
#endif
#endif /* WINPR_ASN1_H */

View File

@ -673,7 +673,7 @@ boolean WTSVirtualChannelWrite(
stream_seek_uint8(s);
cbChId = wts_write_variable_uint(s, channel->channel_id);
if (first && Length > stream_get_left(s))
if (first && (Length > (uint32) stream_get_left(s)))
{
cbLen = wts_write_variable_uint(s, Length);
item->buffer[0] = (DATA_FIRST_PDU << 4) | (cbLen << 2) | cbChId;