diff options
| author | bors <bors@rust-lang.org> | 2015-01-19 10:19:23 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-01-19 10:19:23 +0000 |
| commit | 7b87900d72cf53037119e3bac1506a9786ca508a (patch) | |
| tree | 635a4398d201792e85ac47af162f4c7e9048f284 /src/rustllvm/RustWrapper.cpp | |
| parent | 135cac852822afe822cc1e4eb9546b96eb2cb35d (diff) | |
| parent | d053ccb45fafc12a52629f209122c1ce9bbfabed (diff) | |
| download | rust-7b87900d72cf53037119e3bac1506a9786ca508a.tar.gz rust-7b87900d72cf53037119e3bac1506a9786ca508a.zip | |
Auto merge of #20874 - klutzy:windows-dynamic-lib, r=alexcrichton
This is a [breaking-change] since `std::dynamic_lib::dl` is now private. When `LoadLibraryW()` fails, original code called `errno()` to get error code. However, there was local allocation of `Vec` before `LoadLibraryW()`, and it drops before `errno()`, and the drop (deallocation) changed `errno`! Therefore `dynamic_lib::open()` thought it always succeeded. This commit fixes the issue. This commit also sets Windows error mode during `LoadLibrary()` to prevent "dll load failed" dialog.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
