libfreerdp-core: Fixed incorrect use of BOOL as a return value where an integer was returned