[Libreoffice-commits] core.git: extensions/source

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Sun Aug 18 11:42:23 UTC 2019


 extensions/source/scanner/twain32shim.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 53e4d5fe73d98b109d79fc2c1f5032faea88afb9
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Sun Aug 18 10:43:51 2019 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Sun Aug 18 13:41:18 2019 +0200

    tdf#126989: always terminate shim after fallback complete
    
    It seems that DSM may not send MSG_CLOSEDSREQ (or we may already have
    unloaded DSM), so don't rely on it.
    
    Change-Id: I3ed2e0e70f4dc79c89b430b4bad6954bf9224c71
    Reviewed-on: https://gerrit.libreoffice.org/77659
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/extensions/source/scanner/twain32shim.cxx b/extensions/source/scanner/twain32shim.cxx
index 49d6787eb69f..f813ff83d4cb 100644
--- a/extensions/source/scanner/twain32shim.cxx
+++ b/extensions/source/scanner/twain32shim.cxx
@@ -511,8 +511,7 @@ void ImpTwain::ImplFallbackHdl(WPARAM nEvent)
         {
             if (nEvent > TWAIN_EVENT_NONE)
                 NotifyParent(nEvent, reinterpret_cast<LPARAM>(m_hMap));
-            if (nEvent == TWAIN_EVENT_QUIT)
-                PostQuitMessage(0);
+            PostQuitMessage(0);
 
             bFallback = false;
         }


More information about the Libreoffice-commits mailing list