mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
r=pedemonte, sr=blizzard (platform specific) Remove DLL_InitTerm from NSPR - move it to Mozilla code
This commit is contained in:
parent
0903dbe2da
commit
bb3f6c6fcd
@ -780,6 +780,12 @@ nsNativeAppSupportOS2::Start( PRBool *aResult ) {
|
||||
sizeof( MQINFO ) );
|
||||
if( !hmqCurrent )
|
||||
{
|
||||
/* Set our app to be a PM app before attempting Win calls */
|
||||
PPIB ppib;
|
||||
PTIB ptib;
|
||||
DosGetInfoBlocks(&ptib, &ppib);
|
||||
ppib->pib_ultype = 3;
|
||||
|
||||
hab = WinInitialize( 0 );
|
||||
hmqCurrent = WinCreateMsgQueue( hab, 0 );
|
||||
}
|
||||
|
@ -1522,8 +1522,18 @@ static void _md_CreateEventQueue( PLEventQueue *eventQueue )
|
||||
/* Must have HMQ for this & can't assume we already have appshell */
|
||||
if( FALSE == WinQueryQueueInfo( HMQ_CURRENT, NULL, 0))
|
||||
{
|
||||
HAB hab = WinInitialize( 0);
|
||||
WinCreateMsgQueue( hab, 0);
|
||||
PPIB ppib;
|
||||
PTIB ptib;
|
||||
HAB hab;
|
||||
HMQ hmq;
|
||||
|
||||
/* Set our app to be a PM app before attempting Win calls */
|
||||
DosGetInfoBlocks(&ptib, &ppib);
|
||||
ppib->pib_ultype = 3;
|
||||
|
||||
hab = WinInitialize(0);
|
||||
hmq = WinCreateMsgQueue(hab, 0);
|
||||
PR_ASSERT(hmq);
|
||||
}
|
||||
|
||||
if( !_pr_PostEventMsgId)
|
||||
|
@ -1230,6 +1230,12 @@ nsNativeAppSupportOS2::Start( PRBool *aResult ) {
|
||||
sizeof( MQINFO ) );
|
||||
if( !hmqCurrent )
|
||||
{
|
||||
/* Set our app to be a PM app before attempting Win calls */
|
||||
PPIB ppib;
|
||||
PTIB ptib;
|
||||
DosGetInfoBlocks(&ptib, &ppib);
|
||||
ppib->pib_ultype = 3;
|
||||
|
||||
hab = WinInitialize( 0 );
|
||||
hmqCurrent = WinCreateMsgQueue( hab, 0 );
|
||||
}
|
||||
|
@ -49,6 +49,8 @@
|
||||
#elif defined (MOZ_WIDGET_GTK)
|
||||
#include <gtk/gtk.h>
|
||||
#elif defined (XP_OS2)
|
||||
#define INCL_DOS
|
||||
#define INCL_WIN
|
||||
#include <os2.h>
|
||||
#endif
|
||||
|
||||
@ -199,6 +201,11 @@ printf("\n****Inside ShowOSAlert ***\n");
|
||||
#elif defined (MOZ_WIDGET_GTK)
|
||||
NS_gtk_alert(message_copy, NULL, "OK");
|
||||
#elif defined (XP_OS2)
|
||||
/* 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);
|
||||
HMQ hmq = WinCreateMsgQueue(hmq,0);
|
||||
WinMessageBox( HWND_DESKTOP, HWND_DESKTOP, message_copy, "", 0, MB_OK);
|
||||
|
Loading…
Reference in New Issue
Block a user