If char could represent the same thing as wchar_t then there wouldn't be two different types of characters. You have a wide string, and thus you need to either convert it to a narrow string iff you're sure that the narrow string can represent it, or properly display the wide string as a wide string:
Pnamewill not work. That's a given, so remove that variable entirely; you can't expect it to represent a wide string. Does your log file still contain just "A" when you use fwprintf() to write section->name?