Changeset 5311 for trunk/src/DPlayX/dplayx_main.cpp
- Timestamp:
- Mar 14, 2001, 12:13:28 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/DPlayX/dplayx_main.cpp
r5135 r5311 1 // $Id: dplayx_main.cpp,v 1. 3 2001-02-14 15:14:41 sandervlExp $1 // $Id: dplayx_main.cpp,v 1.4 2001-03-13 23:13:27 hugh Exp $ 2 2 /* 3 3 * DPLAYX.DLL LibMain … … 23 23 24 24 DEFAULT_DEBUG_CHANNEL(dplay); 25 26 DEFINE_GUID(GUID_NULL,0,0,0,0,0,0,0,0,0,0,0); 27 28 static DWORD DPLAYX_dwProcessesAttached = 0; 25 DEFINE_GUID(GUID_NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); 29 26 30 27 /* This is a globally exported variable at ordinal 6 of DPLAYX.DLL */ … … 34 31 { 35 32 36 TRACE( "(%u,0x%08lx,%p) & 0x%08lx\n", hinstDLL, fdwReason, lpvReserved, DPLAYX_dwProcessesAttached);33 TRACE( "(%u,0x%08lx,%p) & 0x%08lx\n", hinstDLL, fdwReason, lpvReserved, gdwDPlaySPRefCount ); 37 34 38 35 switch ( fdwReason ) 39 36 { 40 37 case DLL_PROCESS_ATTACH: 41 {42 43 if ( DPLAYX_dwProcessesAttached++ == 0 )44 {45 38 /* First instance perform construction of global processor data */ 46 39 return DPLAYX_ConstructData(); 47 }48 49 break;50 }51 40 52 41 case DLL_PROCESS_DETACH: 53 42 { 54 55 if ( --DPLAYX_dwProcessesAttached == 0 ) 56 { 57 BOOL rc; 58 /* Last instance performs destruction of global processor data */ 59 rc = DPLAYX_DestructData(); 43 BOOL rc; 44 /* Last instance performs destruction of global processor data */ 45 rc = DPLAYX_DestructData(); 60 46 #ifdef __WIN32OS2__ 47 if(gdwDPlaySPRefCount==0) // only do this the last time ? 61 48 ctordtorTerm(); 62 49 #endif 63 50 return rc; 64 }65 51 66 52 break;
Note:
See TracChangeset
for help on using the changeset viewer.