diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-05 13:15:42 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-05 23:13:15 +0200 |
commit | 515d2579d305a6127c6c194319a58eac62437e33 (patch) | |
tree | e283e99d3ed36c2f3a954df976604c7fea8d29fe /sal/osl/w32/signal.cxx | |
parent | edd163b5e148d1c71ff2c3f55455c971513a6f62 (diff) |
Replace legacy dynamically-loaded functions with statically linked ones
We don't need the dynamic load complexity for these now with baseline
Windows version being Windows 7 SP1. Stuff used only for compatibility
with older versions was dumped.
Change-Id: I810f271796cfd875cfa18a3081c9ad444fe57b3e
Reviewed-on: https://gerrit.libreoffice.org/70321
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal/osl/w32/signal.cxx')
-rw-r--r-- | sal/osl/w32/signal.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sal/osl/w32/signal.cxx b/sal/osl/w32/signal.cxx index 79d0bcbd4e03..aa5662221c7c 100644 --- a/sal/osl/w32/signal.cxx +++ b/sal/osl/w32/signal.cxx @@ -27,6 +27,7 @@ #include <systools/win32/uwinapi.h> #include <errorrep.h> +#include <werapi.h> namespace { @@ -39,14 +40,7 @@ bool onInitSignal() { pPreviousHandler = SetUnhandledExceptionFilter(signalHandlerFunction); - HMODULE hFaultRep = LoadLibraryW( L"faultrep.dll" ); - if ( hFaultRep ) - { - pfn_ADDEREXCLUDEDAPPLICATIONW pfn = reinterpret_cast<pfn_ADDEREXCLUDEDAPPLICATIONW>(GetProcAddress( hFaultRep, "AddERExcludedApplicationW" )); - if ( pfn ) - pfn( L"SOFFICE.EXE" ); - FreeLibrary( hFaultRep ); - } + WerAddExcludedApplication(L"SOFFICE.EXE", FALSE); return true; } |