mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 11:26:09 +00:00
29 lines
470 B
C
29 lines
470 B
C
/*
|
|
* "@(#)dllmain.c 10.2 (Netscape) 4/25/98";
|
|
*/
|
|
|
|
#include <windows.h>
|
|
|
|
extern int __os_segdata_init(void);
|
|
extern int __os_segdata_destroy(void);
|
|
|
|
int FAR PASCAL LibMain(HANDLE hInstance, WORD wDataSeg,
|
|
WORD wHeapSize, LPSTR lpszCmdLine)
|
|
{
|
|
if( wHeapSize > 0 ) {
|
|
UnlockData(0);
|
|
}
|
|
|
|
if( 0 != __os_segdata_init() ) {
|
|
return 0;
|
|
}
|
|
|
|
return 1;
|
|
}
|
|
|
|
int FAR PASCAL _export WEP(int nParam)
|
|
{
|
|
(void)__os_segdata_destroy();
|
|
return 1;
|
|
}
|