[mythtv] [mythtv-commits] Ticket #4422: when linking errors occur while loading plugins, the errors are not displayed correctly

Anduin Withers awithers at anduin.com
Sat Jan 5 07:33:25 UTC 2008


> Comment(by nigel):
> 
>  Simon, does something like this fix it?

No but a simple mapping of dlerror() to GetLastError() is wrong anyway.

The compat layer should create a dlerror() function that calls
GetLastError() and then uses FormatMessage() to format the error code into a
string.

I'm not doing the Windows builds yet but to someone who is: If you look at
the MSDN example for FormatMessage(), something like that code in a compat
dlerror() (with a local buffer so we don't have to LocalFree()) should be
done.

-- 
Anduin Withers



More information about the mythtv-dev mailing list