bitcoin/bitcoin — pull request #902 by laanwj (2012-02-26 16:15:29+00:00)
Title: Simplify MyGetSpecialFolderPath and fix possible buffer overflow (#901)

Removes potential buffer overflow in win32 code as reported in #901.

Also simplify the `MyGetSpecialFolderPath` function, as SHGetSpecialFolderPath is always included in Windows XP, the minimum version supported:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb762204%28v=vs.85%29.aspx

Warning: Untested