http://bugs.winehq.org/show_bug.cgi?id=33711
Bug #: 33711 Summary: GetModuleFileNameA returns "UNC\server\share\application.exe" Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 AssignedTo: wine-bugs@winehq.org ReportedBy: bernd.edlinger@hotmail.de Classification: Unclassified
Hello,
I have an application here that is started as "\server\share\application.exe" but fails when WinMain executes, because the application uses GetModuleFileNameA to retrieve the application name, and try to use _lopen with the returned module path name.
The problem is, that the module file name is returned as "UNC\server\share\application.exe" which _lopen can not use.
If it was returned as "\server\share\application.exe" everything would be fine.
PS: I have a fresh wine1.4-0ubuntu4.1 here.