drdynvc: fix buffer pointer type.

This commit is contained in:
Vic Lee
2011-09-19 17:04:14 +08:00
parent 565fca5671
commit 6d6c5062ab
5 changed files with 7 additions and 5 deletions

View File

@@ -71,7 +71,7 @@ static int drdynvc_write_variable_uint(STREAM* stream, uint32 val)
return cb;
}
int drdynvc_write_data(drdynvcPlugin* drdynvc, uint32 ChannelId, char* data, uint32 data_size)
int drdynvc_write_data(drdynvcPlugin* drdynvc, uint32 ChannelId, uint8* data, uint32 data_size)
{
STREAM* data_out;
uint32 pos = 0;

View File

@@ -24,7 +24,7 @@
typedef struct drdynvc_plugin drdynvcPlugin;
int drdynvc_write_data(drdynvcPlugin* plugin, uint32 ChannelId, char* data, uint32 data_size);
int drdynvc_write_data(drdynvcPlugin* plugin, uint32 ChannelId, uint8* data, uint32 data_size);
int drdynvc_push_event(drdynvcPlugin* plugin, RDP_EVENT* event);
#endif

View File

@@ -21,6 +21,8 @@
#define __DRDYNVC_TYPES_H
#include "config.h"
#include <freerdp/dvc.h>
#include <freerdp/types.h>
#include <freerdp/utils/debug.h>
#ifdef WITH_DEBUG_DVC

View File

@@ -263,7 +263,7 @@ int dvcman_init(IWTSVirtualChannelManager* pChannelMgr)
static int dvcman_write_channel(IWTSVirtualChannel* pChannel,
uint32 cbSize,
char* pBuffer,
uint8* pBuffer,
void* pReserved)
{
DVCMAN_CHANNEL* channel = (DVCMAN_CHANNEL*)pChannel;

View File

@@ -73,7 +73,7 @@ struct _IWTSVirtualChannel
/* Starts a write request on the channel. */
int (*Write) (IWTSVirtualChannel* pChannel,
uint32 cbSize,
char* pBuffer,
uint8* pBuffer,
void* pReserved);
/* Closes the channel. */
int (*Close) (IWTSVirtualChannel* pChannel);
@@ -118,7 +118,7 @@ struct _IWTSListenerCallback
the associated listener. */
int (*OnNewChannelConnection) (IWTSListenerCallback* pListenerCallback,
IWTSVirtualChannel* pChannel,
char* Data,
uint8* Data,
int* pbAccept,
IWTSVirtualChannelCallback** ppCallback);
};