[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Preserve the last error when restoring the error mode.
From: |
Peter Rosin |
Subject: |
Preserve the last error when restoring the error mode. |
Date: |
Wed, 17 Mar 2010 11:03:50 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 |
Hi!
As promised in the other thread, here's a patch (on top of the
thread-error-mode-2.patch) to ensure that the reported error is
the error from the LoadLibrary call.
Cheers,
Peter
2010-03-17 Peter Rosin <address@hidden>
Preserve the last error when restoring the error mode.
* libltdl/loaders/loadlibrary.c (wm_open): Don't rely on
SetThreadErrorMode (or SetErrorMode) to not clobber the last
error.
Report by Ralf Wildenhues.
--
They are in the crowd with the answer before the question.
> Why do you dislike Jeopardy?
preserve-last-error.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Preserve the last error when restoring the error mode.,
Peter Rosin <=