vcl/win/app/salinst.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 14eff34dd10c047de222813eb16198b295b31d54
Author:     Noel Grandin <n...@peralex.com>
AuthorDate: Thu Feb 4 08:44:45 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Feb 4 09:22:18 2021 +0100

    fix sporadic crash in sd_misc_tests on windows
    
    we end up trying to process a timer message, but from inside
    the vcl de-init function, which means the timer stuff has already
    been de-initialised.
    
    Change-Id: I94703219754f1ccabd3065fc5ea437f39264197b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110397
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/win/app/salinst.cxx b/vcl/win/app/salinst.cxx
index 828bd8fec248..ea4c9420beb0 100644
--- a/vcl/win/app/salinst.cxx
+++ b/vcl/win/app/salinst.cxx
@@ -557,6 +557,12 @@ LRESULT CALLBACK SalComWndProc( HWND, UINT nMsg, WPARAM 
wParam, LPARAM lParam, b
     SAL_INFO("vcl.gdi.wndproc", "SalComWndProc(nMsg=" << nMsg << ", wParam=" 
<< wParam
                                 << ", lParam=" << lParam << "); inSendMsg: " 
<< bIsOtherThreadMessage);
 
+    if (ImplGetSVData()->mbDeInit)
+    {
+        SAL_WARN("vcl.gdi.wndproc", "ignoring timer event because we are 
shutting down");
+        return 0;
+    }
+
     switch ( nMsg )
     {
         case SAL_MSG_THREADYIELD:
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to