Changeset 286
- Timestamp:
- Apr 1, 2007, 10:44:04 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/nom/src/nomgc.c ¶
r284 r286 146 146 #endif 147 147 148 /* 149 Find a library record in the buffer filled by DosQuerySysState(). 148 /** 149 Find a library record in the buffer filled by DosQuerySysState(). This function 150 searches in the list of all known libs, not in the process libs list. 150 151 */ 151 152 static qsLrec_t* qsFindModuleRec(const qsPtrRec_t * hRegisterDLL, USHORT hMod){ … … 157 158 { 158 159 a++; 159 /* printf("%d Checking: %x -> %04X (%s)\n", a, pModRec, pModRec->hmte, pModRec->pName); */160 /* g_message("%d Checking: %x -> %04X (%s)", a, pModRec, pModRec->hmte, pModRec->pName); */ 160 161 161 162 if (NULLHANDLE==pModRec->pObjInfo && pModRec->ctObj > 0) … … 178 179 } 179 180 181 /** 182 Get the info about the current DLLs from OS/2. Go over all found 183 DLLs and insert them in a list. For all found DLLs go over the imports 184 of them and add them to the list etc. Duplicates are ignored. 185 */ 180 186 #define BUFSIZE 1024*1024 181 187 NOMEXTERN HREGDLL NOMLINK nomBeginRegisterDLLWithGC(void) … … 213 219 pRegDLL->pMainAnchor=(qsPtrRec_t*) buf; 214 220 221 /* Pointer to process information */ 215 222 p=pRegDLL->pMainAnchor->pProcRec; 216 223 217 224 while(p && p->RecType == 1) 218 225 { 219 220 if (p->cLib) { 226 qsLrec_t * pModRec; /* Info about a DLL */ 227 228 /* Get record for executable */ 229 pModRec=qsFindModuleRec(pRegDLL->pMainAnchor, p->hMte); 230 if(pModRec){ 231 //if(pModRec->pName) 232 //g_message("exe) %s", pModRec->pName); 233 qsAddDLLToList(pRegDLL, pModRec); 234 } 235 236 if (p->cLib) { /* Number of lib imports */ 221 237 int i; 222 238 223 239 for (i=0; i<p->cLib; i++){ 224 qsLrec_t * pModRec;225 226 240 pModRec=qsFindModuleRec(pRegDLL->pMainAnchor, p->pLibRec[i]); 227 241 228 242 if(pModRec){ 229 // 230 //g_message(" %s", pModRec->pName);243 //if(pModRec->pName) 244 //g_message("a) %s", pModRec->pName); 231 245 qsAddDLLToList(pRegDLL, pModRec); 232 246 } … … 262 276 if(pModImp){ 263 277 //if(pModImp->pName) 264 // g_message("%s", pModImp->pName);278 //g_message("b) %s", pModImp->pName); 265 279 qsAddDLLToList(pRegDLL, pModImp); 266 280 } … … 293 307 GSList* lTemp; 294 308 295 //g_message("Trying to register DLL %s \n", chrDLLName);309 //g_message("Trying to register DLL %s", chrDLLName); 296 310 lTemp=hRegisterDLL->dllList; 297 311 while(lTemp) … … 301 315 pModRec=(qsLrec_t*)lTemp->data; 302 316 if(pModRec){ 303 // g_message("DLL name: %s\n", pModRec->pName);317 // g_message("DLL name: %s", pModRec->pName); 304 318 if(pModRec->pName && (NULLHANDLE!=strstr( pModRec->pName, chrDLLName))) 305 319 {
Note:
See TracChangeset
for help on using the changeset viewer.