Merge pull request #529 from kiilerix/master
some windows compile fixes
This commit is contained in:
commit
6201ec9feb
@ -97,7 +97,7 @@ LRESULT CALLBACK wf_ll_kbd_proc(int nCode, WPARAM wParam, LPARAM lParam)
|
|||||||
rdp_scancode = RDP_SCANCODE_RSHIFT;
|
rdp_scancode = RDP_SCANCODE_RSHIFT;
|
||||||
}
|
}
|
||||||
|
|
||||||
freerdp_input_send_keyboard_event_2(input, !(flags & LLKHF_UP), rdp_scancode);
|
freerdp_input_send_keyboard_event_2(input, !(p->flags & LLKHF_UP), rdp_scancode);
|
||||||
|
|
||||||
if (p->vkCode == VK_CAPITAL)
|
if (p->vkCode == VK_CAPITAL)
|
||||||
DEBUG_KBD("caps lock is processed on client side too to toggle caps lock indicator");
|
DEBUG_KBD("caps lock is processed on client side too to toggle caps lock indicator");
|
||||||
|
@ -684,12 +684,25 @@ INT WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||||||
|
|
||||||
//while (1)
|
//while (1)
|
||||||
{
|
{
|
||||||
|
int arg_parse_result;
|
||||||
|
|
||||||
data = (thread_data*) xzalloc(sizeof(thread_data));
|
data = (thread_data*) xzalloc(sizeof(thread_data));
|
||||||
data->instance = instance;
|
data->instance = instance;
|
||||||
|
|
||||||
freerdp_parse_args(instance->settings, __argc, __argv,
|
arg_parse_result = freerdp_parse_args(instance->settings, __argc, __argv,
|
||||||
wf_process_plugin_args, instance->context->channels, wf_process_client_args, NULL);
|
wf_process_plugin_args, instance->context->channels, wf_process_client_args, NULL);
|
||||||
|
|
||||||
|
if (arg_parse_result < 0)
|
||||||
|
{
|
||||||
|
if (arg_parse_result == FREERDP_ARGS_PARSE_FAILURE)
|
||||||
|
printf("failed to parse arguments.\n");
|
||||||
|
|
||||||
|
#ifdef _DEBUG
|
||||||
|
system("pause");
|
||||||
|
#endif
|
||||||
|
exit(-1);
|
||||||
|
}
|
||||||
|
|
||||||
if (CreateThread(NULL, 0, thread_func, data, 0, NULL) != 0)
|
if (CreateThread(NULL, 0, thread_func, data, 0, NULL) != 0)
|
||||||
g_thread_count++;
|
g_thread_count++;
|
||||||
}
|
}
|
||||||
|
@ -44,12 +44,12 @@ struct rdp_mppc_dec
|
|||||||
uint8* history_ptr;
|
uint8* history_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
int decompress_rdp(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
FREERDP_API int decompress_rdp(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
||||||
int decompress_rdp_4(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
FREERDP_API int decompress_rdp_4(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
||||||
int decompress_rdp_5(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
FREERDP_API int decompress_rdp_5(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
||||||
int decompress_rdp_6(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
FREERDP_API int decompress_rdp_6(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
||||||
int decompress_rdp_61(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
FREERDP_API int decompress_rdp_61(struct rdp_mppc_dec* dec, uint8* cbuf, int len, int ctype, uint32* roff, uint32* rlen);
|
||||||
struct rdp_mppc_dec* mppc_dec_new(void);
|
FREERDP_API struct rdp_mppc_dec* mppc_dec_new(void);
|
||||||
void mppc_dec_free(struct rdp_mppc_dec* dec);
|
FREERDP_API void mppc_dec_free(struct rdp_mppc_dec* dec);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -41,10 +41,10 @@ struct rdp_mppc_enc
|
|||||||
uint16* hash_table;
|
uint16* hash_table;
|
||||||
};
|
};
|
||||||
|
|
||||||
boolean compress_rdp(struct rdp_mppc_enc* enc, uint8* srcData, int len);
|
FREERDP_API boolean compress_rdp(struct rdp_mppc_enc* enc, uint8* srcData, int len);
|
||||||
boolean compress_rdp_4(struct rdp_mppc_enc* enc, uint8* srcData, int len);
|
FREERDP_API boolean compress_rdp_4(struct rdp_mppc_enc* enc, uint8* srcData, int len);
|
||||||
boolean compress_rdp_5(struct rdp_mppc_enc* enc, uint8* srcData, int len);
|
FREERDP_API boolean compress_rdp_5(struct rdp_mppc_enc* enc, uint8* srcData, int len);
|
||||||
struct rdp_mppc_enc* mppc_enc_new(int protocol_type);
|
FREERDP_API struct rdp_mppc_enc* mppc_enc_new(int protocol_type);
|
||||||
void mppc_enc_free(struct rdp_mppc_enc* enc);
|
FREERDP_API void mppc_enc_free(struct rdp_mppc_enc* enc);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user