No bug - OS/2 only - test - put OS/2 code into test (originally used XP_PC and broke OS/2 - didn't write the OS/2 code at that time)
git-svn-id: svn://10.0.0.236/trunk@136441 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -60,6 +60,11 @@ static NS_DEFINE_CID(kIOServiceCID, NS_IOSERVICE_CID);
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
#ifdef XP_OS2
|
||||
#include <os2.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
class StreamToFile : public nsIStreamListener {
|
||||
public:
|
||||
@@ -260,6 +265,14 @@ PageGrabber::Grab(const nsAFlatCString& aURL)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifdef XP_OS2
|
||||
QMSG qmsg;
|
||||
while ( !copier->IsDone() ) {
|
||||
if (WinPeekMsg(0, &qmsg, NULL, 0, 0, PM_REMOVE)) {
|
||||
WinDispatchMsg(0, &qmsg);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
error = copier->HaveError();
|
||||
NS_RELEASE(copier);
|
||||
|
||||
Reference in New Issue
Block a user