ex_cnt_limit--;
}
} while (heaplist_next(handle, &hlist)
- && (GetTickCount()-starttime)<MAXDELAY
+ && (!good || (GetTickCount()-starttime)<MAXDELAY)
&& ex_cnt_limit > 0);
}
&& --entrycnt > 0);
}
} while (heaplist_next(handle, &hlist)
- && (GetTickCount()-starttime)<MAXDELAY);
+ && (!good || (GetTickCount()-starttime)<MAXDELAY));
}
#endif
if (process_first(handle, &p))
do
RAND_add(&p, p.dwSize, 9);
- while (process_next(handle, &p) && (GetTickCount()-starttime)<MAXDELAY);
+ while (process_next(handle, &p) && (!good || (GetTickCount()-starttime)<MAXDELAY));
/* thread walking */
/* THREADENTRY32 contains 6 fields that will change
if (thread_first(handle, &t))
do
RAND_add(&t, t.dwSize, 6);
- while (thread_next(handle, &t) && (GetTickCount()-starttime)<MAXDELAY);
+ while (thread_next(handle, &t) && (!good || (GetTickCount()-starttime)<MAXDELAY));
/* module walking */
/* MODULEENTRY32 contains 9 fields that will change
do
RAND_add(&m, m.dwSize, 9);
while (module_next(handle, &m)
- && (GetTickCount()-starttime)<MAXDELAY);
+ && (!good || (GetTickCount()-starttime)<MAXDELAY));
if (close_snap)
close_snap(handle);
else