[PATCH] Get dlerror() messages

Hello,

Attached is a simple fix for getting error messages from dlerror in
LoadLibraryPermanently. The current code modifies the value of a pointer
that is passed by value, so the caller never gets the message.

Hope this helps,
Julien

patch.diff (491 Bytes)

Your fix looks great, this fixes a memory leak too. Thanks Julien!
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080310/059605.html

-Chris