diff --git a/libfreerdp/core/channels.c b/libfreerdp/core/channels.c index 647bc8186..268c55749 100644 --- a/libfreerdp/core/channels.c +++ b/libfreerdp/core/channels.c @@ -267,5 +267,5 @@ static const WtsApiFunctionTable FreeRDP_WtsApiFunctionTable = PWtsApiFunctionTable FreeRDP_InitWtsApi(void) { - return &FreeRDP_WtsApiFunctionTable; + return (PWtsApiFunctionTable)&FreeRDP_WtsApiFunctionTable; } diff --git a/uwac/libuwac/uwac-display.c b/uwac/libuwac/uwac-display.c index 2fa20b490..b44172ac1 100644 --- a/uwac/libuwac/uwac-display.c +++ b/uwac/libuwac/uwac-display.c @@ -499,7 +499,7 @@ static const char *errorStrings[] = { }; const char *UwacErrorString(UwacReturnCode error) { - if (error < 0 || error >= UWAC_ERROR_LAST) + if (error < UWAC_SUCCESS || error >= UWAC_ERROR_LAST) return "invalid error code"; return errorStrings[error];