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:
mkaply%us.ibm.com
2003-01-16 21:35:18 +00:00
parent 1e0034bde1
commit 39ae496632
2 changed files with 26 additions and 0 deletions

View File

@@ -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);