зеркало из https://github.com/mozilla/pjs.git
fixes bug 247962 "Remove DLL_INitterm code from NSPR" patch by mkaply@us.ibm.com r=wtc
This commit is contained in:
Родитель
751dbbb26b
Коммит
9efc71f657
|
@ -570,7 +570,6 @@ typedef struct _CONTEXTRECORD {
|
|||
#endif
|
||||
|
||||
extern APIRET (* APIENTRY QueryThreadContext)(TID, ULONG, PCONTEXTRECORD);
|
||||
unsigned long _System _DLL_InitTerm( unsigned long mod_handle, unsigned long flag);
|
||||
|
||||
/*
|
||||
#define _pr_tid (((PTIB2)_getTIBvalue(offsetof(TIB, tib_ptib2)))->tib2_ultid)
|
||||
|
|
|
@ -564,38 +564,3 @@ PRStatus _MD_CloseFileMap(PRFileMap *fmap)
|
|||
return PR_FAILURE;
|
||||
}
|
||||
|
||||
/*
|
||||
* Automatically set apptype switch for interactive and other
|
||||
* tests that create an invisible plevent window.
|
||||
*/
|
||||
unsigned long _System _DLL_InitTerm( unsigned long mod_handle, unsigned long flag)
|
||||
{
|
||||
unsigned long rc = 0; /* failure */
|
||||
|
||||
if( !flag)
|
||||
{
|
||||
/* init */
|
||||
if( _CRT_init() == 0)
|
||||
{
|
||||
PPIB pPib;
|
||||
PTIB pTib;
|
||||
|
||||
/* probably superfluous, but can't hurt */
|
||||
__ctordtorInit(0);
|
||||
|
||||
DosGetInfoBlocks( &pTib, &pPib);
|
||||
pPib->pib_ultype = 3; /* PM */
|
||||
|
||||
rc = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
__ctordtorTerm(0);
|
||||
_CRT_term();
|
||||
rc = 1;
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче