mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 04:39:31 +00:00
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)
This commit is contained in:
parent
d2219217f0
commit
9f457e2bdb
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user