libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Report proper errors from the loadlibrary loader.


From: Peter Rosin
Subject: Report proper errors from the loadlibrary loader.
Date: Sat, 02 Jan 2010 04:02:57 +0100
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hi!

Please consider the attached patch.

I'm just about to go skiing for a week or so, so I'll push when I get
back if this patch is blessed (knock wood) after I leave...

Cheers,
Peter

ChangeLog:

2010-01-02  Peter Rosin  <address@hidden>

        Report proper errors from the loadlibrary loader.
        * libltdl/loaders/loadlibrary.c: Update copyright years.
        (loadlibraryerror): New helper function that returns the
        latest Windows error as a string, or the provided default
        string on failure to do so.
        (LOADLIB_SETERROR): New macro that wraps previous to make it
        easy to use.
        (vm_open, vm_close, vm_sym): Make use of previous.
        (LOCALFREE): New macro to help free the Windows error string.
        (vl_exit): Make use of previous.


Attachment: loadlibrary-error.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]