Closed Bug 522360 Opened 15 years ago Closed 15 years ago

[js-ctypes] Support opening of DLLs without full path using the system PATH

Categories

(Core :: js-ctypes, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
status1.9.2 --- beta2-fixed

People

(Reporter: daniel, Assigned: m_kato)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.3a1pre) Gecko/20091014 Minefield/3.7a1pre
Build Identifier: 

Most languages support linking to a DLL by just defining the DLL name. The DLL must then be in the system PATH (or in the same path of the executable).

Something similar should be supported for js-ctypes as well. At least the system PATH.

Reproducible: Always
the search rule of loading DLL in Windows.
http://support.microsoft.com/kb/164501/
Version: unspecified → Trunk
Does PR_LoadLibrary follow any of the platform-specific search rules (via the OS hooks it uses)? Or do we have to implement it all ourselves?
(In reply to comment #2)
> Does PR_LoadLibrary follow any of the platform-specific search rules (via the
> OS hooks it uses)? Or do we have to implement it all ourselves?

Dan, I believe that InitWithPath returns error at first.
confirmed on Linux x86 and Windows x86.  Maybe, I think that we should use LoadLibraryWithFlags instead of nsILocalFile::Load() since InitWithPath() returns error.
Assignee: nobody → m_kato
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: x86 → All
Attached patch patch v1Splinter Review
Attachment #406662 - Flags: review+
Comment on attachment 406662 [details] [diff] [review]
patch v1

Wonderful. r=me! Does this pass tryserver on all platforms?
(In reply to comment #6)
> (From update of attachment 406662 [details] [diff] [review])
> Wonderful. r=me! Does this pass tryserver on all platforms?

Yes.
landed
http://hg.mozilla.org/mozilla-central/rev/e00dfdccc270
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Attachment #406662 - Flags: approval1.9.2?
Dan, Makoto, thanks again for your great and really fast work. Nice job!
Attachment #406662 - Flags: approval1.9.2? → approval1.9.2+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: