зеркало из https://github.com/mozilla/pjs.git
[OS/2] Bug 342239: Fix startup problem when MOZ_NO_REMOTE is set, r/sr=mkaply
This commit is contained in:
Родитель
bb2b4b2d19
Коммит
d220876805
|
@ -69,6 +69,19 @@ nsAppShell::~nsAppShell()
|
|||
nsresult
|
||||
nsAppShell::Init()
|
||||
{
|
||||
// a message queue is required to create a window but
|
||||
// it is not necessarily created yet
|
||||
if (WinQueryQueueInfo(HMQ_CURRENT, NULL, 0) == FALSE) {
|
||||
// Set our app to be a PM app before attempting Win calls
|
||||
PPIB ppib;
|
||||
PTIB ptib;
|
||||
DosGetInfoBlocks(&ptib, &ppib);
|
||||
ppib->pib_ultype = 3;
|
||||
|
||||
HAB hab = WinInitialize(0);
|
||||
WinCreateMsgQueue(hab, 0);
|
||||
}
|
||||
|
||||
if (!sMsgId) {
|
||||
sMsgId = WinAddAtom( WinQuerySystemAtomTable(), "nsAppShell:EventID");
|
||||
WinRegisterClass((HAB)0, "nsAppShell:EventWindowClass", EventWindowProc, NULL, 0);
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
#include "nsBaseAppShell.h"
|
||||
#define INCL_DEV
|
||||
#define INCL_WIN
|
||||
#define INCL_DOS
|
||||
#include <os2.h>
|
||||
|
||||
/**
|
||||
|
|
Загрузка…
Ссылка в новой задаче