bugfix for CREDUI enforcing a UserInformation update with values from the RunAs
user
bugfix add free memory before throw exception
Fix bug when SessionProperties object is null.
Minor fixes. - Add __cdecl to avoid compiler warnings.