Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 31 of file match.c.
Referenced by match_line().
{ static int state = 0; char Image[NAMESIZE]; DWORD Base; DWORD Size; PLIST_MEMBER plm; int cnt; if ( processed ) return processed; if ( (cnt = sscanf(Line," Base Size %5s", Image)) == 1 ) { l2l_dbg(1, "Module relocate list:\n"); state = 1; return 0; } switch (state) { case 1: if ( (cnt = sscanf(Line,"%lx %lx %20s", &Base, &Size, Image)) == 3 ) { if (( plm = entry_lookup(&cache, Image) )) { plm->RelBase = Base; plm->Size = Size; l2l_dbg(1, "Relocated: %s %08x -> %08x\n", Image, plm->ImageBase, plm->RelBase); } return 0; } else { state = 0; } break; default: state = 0; } return 1; }