From 4618dd93d85e017ebc2becacaddc235af02598d4 Mon Sep 17 00:00:00 2001 From: Carolyn MacLeod Date: Wed, 12 Sep 2001 21:21:51 +0000 Subject: *** empty log message *** --- bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bundles/org.eclipse.swt/Eclipse SWT/common') diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c b/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c index d1bdfd6013..d1414df355 100755 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/library/callback.c @@ -236,9 +236,8 @@ JNIEXPORT jboolean JNICALL Java_org_eclipse_swt_internal_Callback_getEnabled int callback(int index, ...) { - if (!CallbacksEnabled) { - return 0; - } else { + if (!CallbacksEnabled) return 0; + DECL_GLOB(pGlob) jobject callback = PGLOB(dllCallbackInfo)[index].callin; JNIEnv *env = PGLOB(dllCallbackInfo)[index].env; @@ -302,7 +301,6 @@ int callback(int index, ...) fprintf(stderr, "* callback exiting %d\n", --PGLOB(counter)); #endif return result; - } } /* -- cgit v1.2.3