[Bug 1885] New: Wine does not trim trailing spaces from LoadLibrary calls
Wine Bugs
wine-bugs at winehq.com
Mon Dec 15 17:34:39 CST 2003
http://bugs.winehq.com/show_bug.cgi?id=1885
Summary: Wine does not trim trailing spaces from LoadLibrary
calls
Product: Wine
Version: 20030813
Platform: Other
OS/Version: other
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: wine-misc
AssignedTo: wine-bugs at winehq.com
ReportedBy: frederic.howell at powertechlabs.com
Because of a bug in one of my Windows programs, I was issuing
h=LoadLibrary("frq ");
This loaded frq.dll on Win2K, which is what I wanted.
However on a fake-windows install of Wine-20030813, the call fails. I see from
the module trace's that wine tries to load
"frq .dll",
which does not exist. I could work around this by copying frq.dll to
"frq .dll".
This does bring up the question of which dll would get loaded in Win2K if I had
both frq.dll and "frq .dll" It turns out that frq.dll still
gets loaded (if one is to believe the Output window in VS). If no frq.dll
exists, but only "frq .dll" exists, then the LoadLibrary call
fails(!). My conclusion for Win2K is that trailing spaces should always be
trimmed for LoadLibrary, if no extension is present in module name. If the
extension is present, then Win2K will load the module with spaces in the filename.
--
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs
mailing list