http://bugs.winehq.org/show_bug.cgi?id=27598
--- Comment #4 from Alex Stanev alex@stanev.org 2011-06-25 14:58:12 CDT --- Wylda, I observe it with Oracle instant client 11.1.0.7.0(available from Oracle after simple registration) + PLSQL Developer 8.0.4 (with direct download, 30 day eval). The test environment can be set up with with Oracle XE, also available from Oracle, after reg. I know, it's a bit overhead to setup a env for the bug, please review the attached patch. I believe it's straightforward, alternatively just changing WideCharToMultiByte( CP_ACP, 0, buffer, -1, lpszName, *lpSize, NULL, NULL ); to *lpSize = WideCharToMultiByte( CP_ACP, 0, buffer, -1, NULL, 0, NULL, NULL ); from Andrew's patch does the job too.
P.s. I can't CC Andrew via Bugzilla, strange