From ce62f8265667a62b8c13066eeceeccbcba3beb98 Mon Sep 17 00:00:00 2001 From: "ssu%netscape.com" Date: Fri, 6 Aug 1999 07:58:15 +0000 Subject: [PATCH] fixed blockage of windows process messages when inflating files. This affects only the standalone windows build. git-svn-id: svn://10.0.0.236/trunk@42425 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/modules/libjar/nsZipArchive.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mozilla/modules/libjar/nsZipArchive.cpp b/mozilla/modules/libjar/nsZipArchive.cpp index 66a21ea5368..86c3f9ed2d3 100644 --- a/mozilla/modules/libjar/nsZipArchive.cpp +++ b/mozilla/modules/libjar/nsZipArchive.cpp @@ -40,6 +40,7 @@ #define ZFILE_CREATE PR_WRONLY | PR_CREATE_FILE #define READTYPE PRInt32 #else +#include "windows.h" #include "zipstub.h" #undef NETSCAPE // undoes prtypes damage in zlib.h #define ZFILE_CREATE "wb" @@ -653,6 +654,10 @@ PRInt32 nsZipArchive::InflateItemToDisk( const nsZipItem* aItem, const char* aOu PRBool bRead; PRBool bWrote; +#ifdef STANDALONE + MSG msg; +#endif /* STANDALONE */ + PR_ASSERT( aItem != 0 && aOutname != 0 ); //-- allocate deflation buffers @@ -746,6 +751,13 @@ PRInt32 nsZipArchive::InflateItemToDisk( const nsZipItem* aItem, const char* aOu else zerr = Z_STREAM_END; +#ifdef STANDALONE + while(PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) + { + TranslateMessage(&msg); + DispatchMessage(&msg); + } +#endif /* STANDALONE */ } // while //-- write last inflated bit to disk