Quote Originally Posted by 2kaud View Post
szName is defined as size 200, but WideCharToMultiByte is told that is is 256!
Good catch!