Changes:
- $Id: patcher.c 3812 2005-11-28 18:00:47Z edwin $
+ $Id: patcher.c 3852 2005-12-03 12:34:08Z twisti $
*/
/* check if the field's class is initialized */
- if (!initialize_class(fi->class)) {
- PATCHER_MONITOREXIT;
+ if (!(fi->class->state & CLASS_INITIALIZED)) {
+ if (!initialize_class(fi->class)) {
+ PATCHER_MONITOREXIT;
- return false;
+ return false;
+ }
}
/* patch back original code */
/* check if the class is initialized */
- if (!initialize_class(c)) {
- PATCHER_MONITOREXIT;
+ if (!(c->state & CLASS_INITIALIZED)) {
+ if (!initialize_class(c)) {
+ PATCHER_MONITOREXIT;
- return false;
+ return false;
+ }
}
/* patch back original code */