зеркало из https://github.com/mozilla/gecko-dev.git
0d9e48e427
Before `SharedLibraryInfo::GetInfoForSelf` calls `GetPdbInfo` to parse a module's PE header, it calls `LoadLibraryEx` to prevent the module from being unloaded during `GetPdbInfo`. If the module was already unloaded before `LoadLibraryEx`, however, `LoadLibraryEx` maps the module onto an address different from the original mapped address, so that `module.lpBaseOfDll` becomes invalid. This patch is to call `LoadLibraryEx` before `GetModuleInformation` to make sure `LoadLibraryEx` increments the module's refcount and does not map the module onto a new address. With this, `module.lpBaseOfDll` is always valid, thus we don't have to call `VirtualQuery`. Differential Revision: https://phabricator.services.mozilla.com/D110421 |
||
---|---|---|
.. | ||
core | ||
lul | ||
public | ||
moz.build |