FreeRDP/FreeRDP — pull request #1231 by absmall (2013-05-05 17:26:40+00:00)
Title: Fix use of smartcard with windows 7

At my work, the computer was updated to windows7, and it caused FreeRDP connection to it to fail. It uses smartcard authentication and failure happens right after a smartcard call to GetAttrib SCARD_ATTR_DEVICE_FRIENDLY_NAME_W. My guess for why that might fail is that my smartcard has a name which has an odd number of characters, so saying that the string is UTF-16 and has an odd length is obviously illegal, but maybe windows7 checks that the name is valid UTF-16 and windows xp doesn't. Converting the name to valid UTF-16 made it so it will connect successfully.