GUACAMOLE-249: Switch return type of guac_rdp_cache_bitmap() back to void - it doesn't fail, and isn't dictated by the FreeRDP API.

This commit is contained in:
Michael Jumper 2020-01-11 20:14:14 -08:00
parent 62ee36142d
commit f805a80bc1
2 changed files with 2 additions and 7 deletions

View File

@ -31,7 +31,7 @@
#include <stdio.h>
#include <stdlib.h>
BOOL guac_rdp_cache_bitmap(rdpContext* context, rdpBitmap* bitmap) {
void guac_rdp_cache_bitmap(rdpContext* context, rdpBitmap* bitmap) {
guac_client* client = ((rdp_freerdp_context*) context)->client;
guac_rdp_client* rdp_client = (guac_rdp_client*) client->data;
@ -59,8 +59,6 @@ BOOL guac_rdp_cache_bitmap(rdpContext* context, rdpBitmap* bitmap) {
/* Store buffer reference in bitmap */
((guac_rdp_bitmap*) bitmap)->layer = buffer;
return TRUE;
}
BOOL guac_rdp_bitmap_new(rdpContext* context, rdpBitmap* bitmap) {

View File

@ -61,11 +61,8 @@ typedef struct guac_rdp_bitmap {
*
* @param bitmap
* The bitmap to cache.
*
* @return
* TRUE if successful, FALSE otherwise.
*/
BOOL guac_rdp_cache_bitmap(rdpContext* context, rdpBitmap* bitmap);
void guac_rdp_cache_bitmap(rdpContext* context, rdpBitmap* bitmap);
/**
* Initializes the given newly-created rdpBitmap.