http://bugs.winehq.org/show_bug.cgi?id=37063
--- Comment #6 from dwmw2@infradead.org dwmw2@infradead.org --- (In reply to Hans Leidekker from comment #5)
Yes, that's better. You should use WCHAR instead of wchar_t. Also note that HeapFree doesn't need the NULL pointer guard.
Thanks. I've fixed those, and the fact that I was only freeing the converted strings if the password was set, and sent the patch.