Merge pull request #2463 from akallabeth/vs2010_error_fix

Fixed mixed declaration of code and variables.
This commit is contained in:
Hardening 2015-03-13 14:29:23 +01:00
commit 6ac718010a

View File

@ -512,11 +512,12 @@ void freerdp_dynamic_channel_collection_add(rdpSettings* settings, ADDIN_ARGV* c
if (settings->DynamicChannelArraySize < (settings->DynamicChannelCount + 1)) if (settings->DynamicChannelArraySize < (settings->DynamicChannelCount + 1))
{ {
UINT32 new_size;
ADDIN_ARGV **new_array;
settings->DynamicChannelArraySize *= 2; settings->DynamicChannelArraySize *= 2;
settings->DynamicChannelArray = (ADDIN_ARGV**) settings->DynamicChannelArray = (ADDIN_ARGV**)
realloc(settings->DynamicChannelArray, settings->DynamicChannelArraySize * sizeof(ADDIN_ARGV*)); realloc(settings->DynamicChannelArray, settings->DynamicChannelArraySize * sizeof(ADDIN_ARGV*));
UINT32 new_size;
ADDIN_ARGV **new_array;
new_size = settings->DynamicChannelArraySize * 2; new_size = settings->DynamicChannelArraySize * 2;
new_array = (ADDIN_ARGV**) new_array = (ADDIN_ARGV**)