[Bug 33711] GetModuleFileNameA returns "UNC\server\share\application.exe"

wine-bugs at winehq.org wine-bugs at winehq.org
Tue Jun 4 02:25:14 CDT 2013


http://bugs.winehq.org/show_bug.cgi?id=33711

--- Comment #3 from Bernd Edlinger <bernd.edlinger at hotmail.de> 2013-06-04 02:25:14 CDT ---
Created attachment 44655
  --> http://bugs.winehq.org/attachment.cgi?id=44655
sample application to demonstrate this

compile this example under cygwin:
gcc -mno-cygwin -mwindows -Wall -O2 -o app app.c

install under linux:
cd .wine/dosdevices
mkdir -p unc/server/share
cp app.exe unc/server/share

execute:
wine //server/share/app.exe

result:
WinMain(00400000,00000000,"",10)
GetModuleFileName() => 24, "UNC\server\share\app.exe"
GetCommandLine() => "\\server\share\app.exe"
_lopen("UNC\server\share\app.exe") => -1

under windows XP GetModuleFileName() returns "\\server\share\app.exe"
and _lopen succeeds

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list